Skip to content

Commit c7ec047

Browse files
committed
fix bugs
1 parent 34ce429 commit c7ec047

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: python_base.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -292,7 +292,7 @@ def __missing__(self, key):
292292
#-- 元组和列表的唯一区别在于元组是不可变对象,列表是可变对象
293293
a = [1, 2, 3] # a[1] = 0, OK
294294
a = (1, 2, 3) # a[1] = 0, Error
295-
a = ([1, 2]) # a[0][1] = 0, OK
295+
a = ([1, 2],) # a[0][1] = 0, OK
296296
a = [(1, 2)] # a[0][1] = 0, Error
297297

298298
#-- 元组的特殊语法: 逗号和圆括号

0 commit comments

Comments
 (0)