Commit 620d23ae by BellCodeEditor

save project

parent f562b76f
Showing with 13 additions and 13 deletions
import random
list=['石头','剪刀','布']
computer=random.choice(list)
print('计算机出拳:'+computer)
if player == computer:
print('平局')
elif (player=='剪刀'and computer=='石头')or (player=='石头' and computer=='布')or()player=='石头' and computer=='布') or (player=='剪刀' and computer=='布'): :
print('我牛逼')
else
print('你牛逼')
\ No newline at end of file
...@@ -4,7 +4,7 @@ computer=random.choice(list) ...@@ -4,7 +4,7 @@ computer=random.choice(list)
print('计算机出拳:'+computer) print('计算机出拳:'+computer)
if player == computer: if player == computer:
print('平局') print('平局')
elif (player=='剪刀'and computer=='石头')or (player=='石头' and computer=='布')or()player=='石头' and computer=='布') or (player=='剪刀' and computer=='布'): : elif (player=='剪刀'and computer=='石头')or (player=='石头' and computer=='布')or()player=='石头' and computer=='布') or (player=='剪刀' and computer=='布'):
print('我牛逼') print('我牛逼')
else else
print('你牛逼') print('你牛逼')
\ No newline at end of file
username="ily520"
userpassword="rxw123456"
while True :
name=input("请输入账号:")
password=input("请输入密码:")
if name==username and password==userpassword :
print("登陆成功!")
break
print("用户名或密码错误,请重新输入")
print("欢迎来到贝尔编程!")
\ 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