3711
1
1万
管理员
#int-整数 num1 = 1 # float-浮点数 num2 = 1.1 # str-字符串 #字符串是不可变的数据类型 num3 = '1' # set-集合 num4 = {'a',1} # list-列表 num5 = ['a',1] # bool-布尔型 num6 = True # tuple-元组 num7 = (10,20) # dict-字典 num8 = {'name':'gg'} print(type(num1)) print(type(num2)) print(type(num3)) print(type(num4)) print(type(num5)) print(type(num6)) print(type(num7)) print(type(num8))
举报
本版积分规则 发表回复 回帖后跳转到最后一页
Archiver|手机版|小黑屋|私人站点 ( 冀ICP备2023028127号-2 )
GMT+8, 2025-7-5 21:38 , Processed in 0.084740 second(s), 22 queries .
Powered by Discuz! X3.5
© 2001-2024 Discuz! Team.