Commit dc18d2f2 by BellCodeEditor

save project

parent 1fa1aeb0
Showing with 27 additions and 0 deletions
def abcdefg():
total = []
while True:
try:
unit=input("请输入:")
if unit== 'q':
break
unit=int(unit)
except:
print("Do you wanna have a bad time?")
else:
total.append(unit)
print(total)
return total
a=abcdefg()
print(a)
b=0
for i in a:
b+=i
print(b)
\ No newline at end of file
def sb(a):
b="Nihao"+a
return b
c=sb("xiaohai")
print(c)
\ 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