Wiki
Books
Shop
Courses
Careers
Change language
English
Italiano
Deutsch
Français
Español
Türk
Русский
Português
Polski
Nederlandse
中文
한국어
日本語
हिन्दी
Python.Engineering
Wiki
Python中方括號和括號括起來的列表有什麼區別?
Python中方括號和括號括起來的列表有什麼區別?
code Python module
|
os Python module
|
Python functions
|
re Python module
|
square
|
StackOverflow
Michael Zippo
11.03.2022
>>> x=[1,2]>>> x[1]2>>> x=(1,2)>>> x[1] 2
它們都有效嗎?出於某種原因是首選嗎?