Commit e1dab074 by BellCodeEditor

save project

parent a2796e2a
Showing with 26 additions and 1 deletions
......@@ -21,5 +21,5 @@ def str(a):
strl=strl+i
return strl
print(str(a))
def
de
\ No newline at end of file
import+def a():
total = []
while True:
unit= input("请输入:")
if unit== 'q':
break
else:
try:
unit=int(unit)
except:
print("cw")
else:
total.append(unit)
return total
a=a()
print(a)
def str(a):
strl=0
for i in a:
strl=strl+i
return strl
print(str(a))
\ 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