- 博客(2)
- 收藏
- 关注
原创 画个爱心送ta吧
import turtle as tr tr.color('red','pink') tr.bigin_fill tr.left(135) tr.fd(100) tr.right(180) tr.circle(50,-180) tr.left(90) tr.circle(50,-180) tr.right(180) tr.fd(100) tr.end_fill() tr.hideturtle() tr.done()
2022-04-05 11:39:06
197
原创 编写程序读取整数,找出它们中的最大值,然后计算它的出现次数。假设输入以数字“0“结束
max = 0 count = 0 while True: n = eval(input"请输入一个数值:") if n == 0: print("输入结束!") break elif n > max: max = n count = 1 elif n == max: count += 1 print("最大值是{},出现了{}次".format(max,count)...
2022-04-03 19:11:39
3194
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人