""" 数据类型 """ # int num1 = 1 # float num2 =1.1 print(type(num1)) print(type(num2)) # str ,字符串,特点:数据都带引号,单引、双引均可 a = 'hello world' print(type(a)) b=True # boolean print(type(b)) # list 列表 c = [10,20,30] print(type(c)) # tuple 元组 d = (10,20,30) print(type(d)) # set 集合 e = {10,20,30} print(type(e)) # dict 字典 键值对 f = {'name':'Tom','age': 16} print((type(f)))