用户:
寒冰秋水查看:1 回复:2 评论:1 创建时间:2021-05-22T13:20:52
【作品展示】

【作品介绍】
我想要制作一种输入数字并加在一起的编程。
【作品源代码】
# # # # def say_hi():
# # # # print("Mr.Wang is *** !")
# # # # say_hi()
# # # # def zz(s):
# # # # if s%4 == 0 and s%100 != 0 or s%400==0:
# # # # print("good")
# # # # else:
# # # # print("喵")
# # # # zz(2020)
# # # # def x(a,s,d):
# # # # v=[a,s,d]
# # # # return max(v)
# # # # a1=int(input())
# # # # a2=int(input())
# # # # a3=int(input())
# # # # print(x(a1,a2,a3))
# # # def v(s):
# # # s+=s
# # # print(v(int(input())))
【提示】
部分含有Python第三方库相关内容的作品,在海龟编辑器网页端无法运行哦!如遇到这种情况,可以打开下面的链接,下载海龟编辑器客户端:
https://python.codemao.cnsum = 0
while True:
inp = input("输入一个数字,输入c打印结果")
if inp == 'c':
break
sum += int(inp)
print(sum)点赞0
评论