Commit fad32a4e by BellCodeEditor

save project

parent ba00a8cf
Showing with 7 additions and 15 deletions
def price(): username="sb"
jiage = [] user="12345"
while True: aoligei=input("输入账户")
danjia = input("请输入价格") zhizhang=input("输入密码")
try: if username==aoligei and user==zhizhang:
if danjia == 'p': print("成功")
break \ No newline at end of file
else:
jiage.append(int(danjia))
except:
input("请输入整数")
retun
print(jiage)
price()
\ 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