代码
bol = True # 布尔num = 100000000; # 数字num2 = 0.0000001; # 数字str = "fangbei"; # 字符串str_cn = u"你好,比特币"; # 字符串 中文unicodelist = [1, 2, 3, 3, 'fangbei']; # 列表,方括号,可重复,元素类型可不同tuple = ('shenzhen', 'beijing', '0755', '0755'); # 元组,小括号,和列表相似,但内容不可修改!dict = { 'name': "fangbei", 'age': 28}; # 字典,大括号,存储键值对,类似jsonset = set(['fang', 'bei', 'm']); # 集合,用于去重print (type(bol));print (type(num));print (type(num2));print (type(str));print (type(str_cn));print (type(list));print (type(tuple));print (type(dict));print (type(set));
返回