1
我似乎無法理解爲什麼我的代碼顯示此錯誤。python:IndexError:元組索引超出範圍
IndexError: tuple index out of range
代碼:
l = ['Simpson', ',', 'Bartholomew', 'Homer', 'G400', 'Year', '2']
x = '{}'* len(l)
print(x)
x.format(l)
print(x)
相關:[*什麼Star運算符是什麼意思?*](http://stackoverflow.com/q/2921847/416224) – kay