xianhu / LearnPython

以撸代码的形式学习Python
https://github.com/xianhu/LearnPython
7.68k stars 3.96k forks source link

python_base.py的295行报错 #39

Closed aGVsZWk closed 5 years ago

aGVsZWk commented 5 years ago

解释器版本: 3.6.4 a = ([1,2]) a[0][1] = 0 报错 元组不写逗号, 默认是一个变量, 不能通过索引得到 正确写法: a = ([1,2], ) a[0][1] = 0

xianhu commented 5 years ago

OK