所以我在Python中有一个这样的列表:
stabe = ["stab1","stab2","stab3","stab4","stab5","stab6"]
并且我想创建像列表元素一样命名的Tkinter Canvas矩形,到目前为止,我已经尝试过了,但是不起作用:
for i in range(n):
stabe[i] = canvas.create_rectangle(50+co, 750-coy, 200-co ,740-coy,
fill='gray', outline='gray')