Commit 46780358 by BellCodeEditor

save project

parent e31a5356
Showing with 7 additions and 5 deletions
i = 5 # 行 import random
j = 3 # 列 player=input("请出拳:石头/剪刀/布")
# 使用变量i和j,代替乘法算式里面的元素,打印出单个乘法算式 print("玩家出拳:"+player)
print(j,"*",i,"=",(i*j)end()) list=["石头","剪刀","布"]
\ No newline at end of file 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