摘要: year=int(input("请输入一个年份:"))if year%4==0 and year%100!=0 or year%4==0: print("{}年是闰年".format(year))else: print("{}年不是闰年".format(year)) 阅读全文
posted @ 2020-06-09 15:00 李随随 阅读(4485) 评论(0) 推荐(0)
摘要: int=int(input("请输入一个数:"))if (int%3==0 and int%5==0): print("{}能同时被3和5整除".format(int))else: print("{}不能同时被3和5整除".format(int)) 阅读全文
posted @ 2020-06-09 14:47 李随随 阅读(487) 评论(0) 推荐(0)
摘要: sale=int(input("询问购买价格:"))if 100>=sale>=50: print("享受的折扣为10%") print("您购买了{0}元的商品,最终享受的价格为:{1}".format(sale,sale*(1-0.1)))elif sale>100: print("享受的折扣为 阅读全文
posted @ 2020-06-09 14:46 李随随 阅读(2343) 评论(0) 推荐(0)
摘要: socres=int(input("请输入学生的成绩:"))if 80<socres>90: print("成绩优秀")elif 70<socres>80: print("成绩良好")elif 60<socres>70: print("成绩一般")elif 50<socres>=60: print( 阅读全文
posted @ 2020-06-09 14:45 李随随 阅读(1275) 评论(0) 推荐(0)
摘要: # 清华大学 https://pypi.tuna.tsinghua.edu.cn/simple/ # 阿里云 https://mirrors.aliyun.com/pypi/simple/ # 豆瓣 https://pypi.douban.com/simple/ # 中国科学技术大学 https:/ 阅读全文
posted @ 2020-06-04 13:30 李随随 阅读(191) 评论(0) 推荐(0)