Commit 1f9dd086 by BellCodeEditor

auto save

parent 8a2a0c03
Showing with 27 additions and 4 deletions
import random
a=input("请輸入石头/剪刀/布")
print("玩家请出拳"+a)
c=["石头","剪刀","布"]
d=random.choice(c)
print("计算机出的是"+d)
if a==d:
print("平局")
elif a=="石头" and d=="剪刀" or a=="剪刀" and d=="布" or a=="布" and d=="石头":
print("玩家胜")
else:
print("计算机胜")
\ No newline at end of file
a=input("请輸入石头/剪刀/布)
print("玩家请出拳")
\ No newline at end of file
import random
a=input("请輸入石头/剪刀/布")
#print("玩家请出拳"+a)
#c=["石头","剪刀","布"]
#d=random.choice(c)
#print("计算机出的是"+d)
#if a==d:
# print("平局")
#elif a=="石头" and d=="剪刀" or a=="剪刀" and d=="布" or a=="布" and d=="石头":
# print("玩家胜")
#else:
# print("计算机胜")
\ No newline at end of file
# 上节课你是这样绘制的五角星👇
# 上节课你是这样绘制的五角星:
# 这节课你可以利用新学的知识自定义五角星的颜色么?
import turtle
ink = input("什么色?")#绘制五角星#
......
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