摘要: import pygame,sys pygame.init()screenGameCaption = pygame.display.set_caption("Ball game")screen = pygame.display.set_mode([680, 480])screen.fill([255 阅读全文
posted @ 2022-12-02 23:55 Super/ 阅读(28) 评论(0) 推荐(0)
摘要: import datetime # 导入日期时间类 # 定义一个列表 mot = ["今天星期一:\n坚持下去不是我很坚强,而是因为我别无选择。", "今天星期二:\n含泪播种的人一定能笑着收获。", "今天星期三:\n做对的事情比把事情做对重要。", "今天星期四:\n命运给予我们的不是失望之酒, 阅读全文
posted @ 2022-09-29 16:07 Super/ 阅读(35) 评论(0) 推荐(0)
摘要: print("今有物不知其数,三三数之剩二,五五数之剩三,七七数之剩二,问几何?\n") number=int(input("请输入您认为符合条件的数:")) if number%3==2 and number%5==3 and number%7==2: print(number,"符合条件:今有物 阅读全文
posted @ 2022-09-22 15:54 Super/ 阅读(30) 评论(0) 推荐(0)
摘要: height=1.70 print("你的身高:"+str(height)) weight=60.0 print("您的体重:"+str(weight)) bmi=weight/(height*height) print("您的bmi指数为"+str(bmi)) #判断身高是否合理 if bmi<1 阅读全文
posted @ 2022-09-15 11:01 Super/ 阅读(36) 评论(0) 推荐(0)