Commit 66e2e485 by BellCodeEditor

auto save

parent 362c8664
Showing with 10 additions and 17 deletions
def new_input(): a=int(input('第一个数字:'))
total = [] b=int(input('第二个数字:'))
while True: c=int(input('第三个数字:'))
unit= input("请输入:") if a>c and a>b:
if unit== 'q': print(a)
break if b>c and b>a:
else: print(b)
if c>a and c>b:
try: print(c)
unit = int(unit) \ No newline at end of file
except:
print("请输入价格:")
else:
total.append(unit)
print(total)
new_input()
\ 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