strl = input(“请出剪刀。石头,或布:”)
if strl == “剪刀”:
print(“我出石头”)
elif strl == “石头”:
print(“我出布”)
elif strl == “布”:
print(“我出剪刀”)
else:
print(“执行这个”)
print(“执行到这里”)
python石头剪刀布小实验
最新推荐文章于 2022-04-28 13:46:05 发布
strl = input(“请出剪刀。石头,或布:”)
if strl == “剪刀”:
print(“我出石头”)
elif strl == “石头”:
print(“我出布”)
elif strl == “布”:
print(“我出剪刀”)
else:
print(“执行这个”)
print(“执行到这里”)