最佳答案
如果我有这样一个列表内涵(例如) :
['' for x in myList]
有效地创建一个对列表中的每个元素都有一个空字符串的新列表,我从不使用 x
。有没有一种更干净的方式来写这个,这样我就不必声明未使用的 x
变量?