Commit cde1c9ed by BellCodeEditor

save project

parent 23f1b8ee
Showing with 6 additions and 3 deletions
def ppp_k() : def ppp_k() :
total = [] total = []
while True: while True:
unit= input("请输入:") unit= input("想吃拉丝糖吗(想or不想)?")
if unit== 'q': if unit== 'q':
break break
else: else:
try: try:
unit = int(unit) unit = int(unit)
except: except:
print("耍我?") print("QQ弹弹还拉稀")
else: else:
total.append(unit) total.append(unit)
print("-"*30) print("-"*30)
return total
print(total) print(total)
ppp_k() resuit = ppp_k()
print(resuit)
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