计算机原理
计算机的5大组成部分
1.CPU
2.内存
3.硬盘
4.输入设备
5.输出设备
编程
print("安徽财贸职业学院很厉害") # name:变量名 # =: 用于绑定变量名与变量值 #"黄克成":变量的值 name = "黄克成" age =18 sex="man" # 整型 age = 18 print("age--->",type(age)) # 浮点型 height = 1.8 print("height--->",type(height)) # 字符 name = "warren" print("name--->",type(name)) #布尔值 #判断name变量与tank1变量值是否相等 print(name=="warren") #Ture print("bool--->",type(name=="warren")) # True # 列表 list1 = ["tank",18,"male"] print(list1) print("list1--->",type(list1)) names = ["黄克成","陆梦圆","warren"] # 列表取值 print(names[2]) # 元组 tuple1 = (1,2,3) print("tuple1--->",type(tuple1)) # 集合 set1 = {11111,11111,22,3,3,3,3,3} print("set--->",type(set1)) # 字典 # key-->"name":value--->"warren",dict1={"name":"tank","age":18} print("dict1--->",type(dict))