问答详情
源自:6-3 Python中dict的特点

6-3课文中这段话是什么意思?

{
    '123': [1, 2, 3],  # key 是 str,value是list
    123: '123',  # key 是 int,value 是 str
    ('a', 'b'): True  # key 是 tuple,并且tuple的每个元素都是不可变对象,value是 boolean}

str,int,tuple,boolean是什么意思

提问者:Hom1am 2020-04-17 00:53

个回答

  • 超小咪
    2020-04-17 10:09:10

    这些都是python的数据类型啊,字符串,整型,元组,布尔