Commit e826d4ab by BellCodeEditor

auto save

parent 024fb164
Showing with 17 additions and 4 deletions
name=input(" 请输入石头/剪刀/布")
print("用户输入的是:"+name)
import random
abc=["石头","剪刀","布"]
computer=random.choice(abc)
print("电脑出:"+computer)
\ No newline at end of file
total = [] def new_input():
while True: total = []
while True:
unit= input("请输入:") unit= input("请输入:")
if unit== 'q': if unit== 'q':
break break
else: else:
total.append(unit) total.append(unit)
print(total) a=0
\ No newline at end of file for i in total:
a=a+i
print(total)
return a
aaa=new_input()
print(aaa)
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