Commit cf85d7c6 by BellCodeEditor

save project

parent 5b04201b
Showing with 20 additions and 1 deletions
import turtle
pen=turtle.Pen()
pen.fillcolor("red")
pen.begin_fill()
for i in range(5):
pen.forward(200)
pen.right(144)
pen.end_fill()
pen.hideturtle()
turtle.done()
\ No newline at end of file
...@@ -7,7 +7,8 @@ while True: ...@@ -7,7 +7,8 @@ while True:
print("登录成功!") print("登录成功!")
break break
if name!=username: if name!=username:
print("用户名登陆失败,重试") print("用户名登陆失败,重试")
continue
if password !=userpassword: if password !=userpassword:
print("密码登陆失败,重试") print("密码登陆失败,重试")
......
import random
player=input("请出拳:")
print("玩家出了:"+player)
i=["石头","剪刀","布"]
computer=random.choice(i)
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