Commit 999dd6f5 by BellCodeEditor

save project

parent 4b88bdae
Showing with 32 additions and 7 deletions
'''
result = input("请输入整数:")
if result.isdigit():
user_num = int(result)
result_num = 88
if user_num == result_num:
print("bingo")
else:
print("wrong")
else:
print("不是整数")
'''
result_num = 88
def getResult():
result = input("请输入整数:")
if result.isdigit():
guess(int(result))
else:
print("不是整数")
getResult()
def guess(user_num):
if user_num == result_num:
print("bingo")
else:
print("wrong")
getResult()
getResult()
\ No newline at end of file
player=input("请出拳:石头/剪刀/布")# 玩家出拳
print("玩家出拳:"+player)
import random
a=["石头","剪刀","布"]
c=computer=random.choices(a)
print(c)
\ No newline at end of file
str.isdigit('')
\ 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