Commit f34c8d37 by BellCodeEditor

save project

parent d095d5d6
Showing with 7 additions and 10 deletions
score = {'a':1,'s':2,'d':3}
for f in score.keys():
print(f)
for v in score.values():
print(v)
for q in score.items():
print(f,v)
# 请对字典进行遍历,将保存的分数以键值对的形式提取打印出来
import random
player = input("请出拳(石头/剪刀/布):")
print("玩家出拳:"+player)
list=["石头","剪刀","布"]
computer=random.choice(list)
print(computer)
\ 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