Commit 5f4ac747 by BellCodeEditor

save project

parent 69e4a767
Showing with 6 additions and 23 deletions
def new_input(): with open ("C:\Users\123\Desktop\新建文件夹""r""utf-8")as jj:
a=[] i=jj.read lines()
while True: for i in i:
a=input("ni hao") data=i.split()
if a=="q": print(data[0])
break \ No newline at end of file
else:
try:
a=int(a)
except:
print("请")
else:
t.append(a)
return a()
def h(monoy):
co=0
for i in monoy:
co=co+i
return co
i=new_input()
m=h(i)
print(m)
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