Skip to content

python_base.py的295行报错 #39

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
aGVsZWk opened this issue Jan 9, 2019 · 1 comment
Closed

python_base.py的295行报错 #39

aGVsZWk opened this issue Jan 9, 2019 · 1 comment

Comments

@aGVsZWk
Copy link

aGVsZWk commented Jan 9, 2019

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

@xianhu
Copy link
Owner

xianhu commented Jan 28, 2019

OK

@xianhu xianhu closed this as completed Jan 28, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants