【发布时间】:2019-01-12 01:58:41
【问题描述】:
a=[12,23,34] a={12,23,34} 我在 python 3.5 中输入了他们两个,看看它有什么不同但无法理解......
这是我的 PowerShell
PS C:\Users\CBB\Desktop> python
Python 3.6.5 (v3.6.5:f59c0932b4, Mar 28 2018, 16:07:46) [MSC v.1900 32 bit (Intel)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>> a={12,12,12}
>>> a
{12}
>>> a={12,23,34}
>>> a
{34, 12, 23}
>>> a=[12,23,45,67]
>>> a
[12, 23, 45, 67]
【问题讨论】:
标签: python-3.x