Commit 37a0e94f by BellCodeEditor

save project

parent dc70412a
# #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