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

来源:6-3 Python中dict的特点

Hom1am

2020-04-17 00:53

{
    '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是什么意思

写回答 关注

1回答

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

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

初识Python

学python入门视频教程,让你快速入门并能编写简单的Python程序

758404 学习 · 8967 问题

查看课程