第1课

A1print("明天"+"大桥下"+"你的好朋友"+"在唱歌")
2print("今年我"+"18岁了")
310-(70-30)=
4str() :转化为文字类型
int() :转化为数字类型
5(15+4)*8=
6print("最大值是?"+str(max(10,50,72,76,87)))
 
print("最小值是?"+str(min(10,50,72,76,87)))

7#本题主要考察max()、min()函数的使用
8print("小明的平均成绩是"+str((80+95+71+87+88+83)/6)+"分")
9while True:
    print("我爱编程,编程使我快乐!!!")
10input("请输入你的名字:")
11print("一共会繁殖"+str(1*3**5)+"个细菌")
12import random
 
sel = random.randint(1,6)
 
print(sel)
 
13import random
 
sel = random.randint(1,10)
 
print(sel)
14#random这个文件是别人写的,我们需要使用必须要拿过来,所以要导入,不然里面的所有的工具都无法使用
15name = input("你的名字是?")
 
print("你好"+name)
19if score = 100:
    print("暑假去姥姥家玩泥巴")
else:
    print("乖乖呆在家里写作业")
20password = input("请输入你的密码:")
 
if password == "12345676543234":
    print("欢迎你,我的朋友!")
else:
    print("你是哪位?我不认识你")
21 3,4,5,6
 
 
 
 
  

  

posted @ 2020-01-19 15:28  刘大个  阅读(110)  评论(0)    收藏  举报