Commit 832fa038 by BellCodeEditor

save project

parent fd48f1fb
Showing with 8 additions and 4 deletions
def d(): def d():
ii=[]
whlie True: whlie True:
unut=input("输入价格") unut=input("输入价格")
s=0
for i in ii:
s=s+i
if unut="p" if unut="p"
break break
try try:
int(unut) int(unut)
except: except:
print("请输入数字") print("请输入数字")
else: else:
d.append(unut) ii.append(unut)
return ii
\ No newline at end of file \ 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