day01

print('安徽财贸学院')

# 定义变量:
# name:变量名
# =:用于绑定变量名与变量值
# '李连杰':变量的值
name = '李连杰'
age = 83
sex = 'female'


# 调用变量
print (name,age,sex)




# 整型
age = 18
print ('age-->',type(age))
# 浮点型
height = 1.9
print('height-->',type(height))
# 字符
name = 'tank'
print('name-->',type(name))
# 布尔值
# 判断name变量与tank1变量值是否相等
print(name =='tank')# Ture
print('bloot-->',type(name =='tank')) # Ture



# 列表
list1 = ['tank',18,'male']
print(list1)
print('list1-->',type(list1))
#    0      1
names = ['吕连杰','陆银银',]
# 列表取值
print('tuple1-->',type(tuple1))

# 集合
set1 = {1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1}
print('set1-->',type(set1))

# 字典
# key->"name":value-->'tank',
dict1 = {"name":'tank','age':18}
print('dict1-->',type(dict1))

 

上一篇:爬虫基础


下一篇:Day1