Commit f3d4c3fc by BellCodeEditor

auto save

parent 05e7d622
# #try:
# age=int(input('sdkjhakj'))
# #except:
# print('lksahiuwaudoiwa')
# #else:
# if age < 18:
# print('djskahdlksaj')
# #print('skjdhusaiueyfiuesyiuf')
import func
nmm=func.ikun()
print(nmm)
\ No newline at end of file
def ikun():
total = []
while True:
unit=input("请输入:")
if unit== 'q':
break
else:
try:
total.append(int(unit))
except:
print('这都能错,小垃圾')
nim=0
for i in total:
nim+=i
# print(total)
return nim
# skj=ikun()
# print(skj)
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment