Commit bffe9b4b by BellCodeEditor

save project

parent 8ea75886
Showing with 101 additions and 9 deletions
import turtle
screen=turtle.Screen()
a=screen.textinput("")
\ No newline at end of file
'''
import turtle
pen=turtle.Pen()
screen=turtle.Screen()
a=screen.textinput("问图形","要多大的图形")
a1=int(a)
pen.penup()
pen.goto(-100,-100)
pen.pendown()
pen.pencolor("black")
for i in range(4):
pen.forward(200)
pen.left(90)
pen.penup()
pen.goto(0,-a1)
pen.pendown()
pen.fillcolor("blue")
pen.begin_fill()
pen.circle(a1,360)
pen.end_fill()
turtle.done()
'''
import turtle
pen=turtle.Pen()
pen.pensize(5)
pen.speed(5)
pen.pencolor("blue")
pen.circle(50)
pen.penup()
pen.pencolor("red")
pen.forward(80)
pen.pendown()
pen.circle(50)
pen.penup()
pen.pencolor("black")
pen.forward(80)
pen.pendown()
pen.circle(50)
pen.penup()
pen.forward(-50)
pen.pencolor("green")
pen.left(90)
pen.forward(50)
pen.left(90)
pen.pendown()
pen.circle(50)
pen.penup()
pen.forward(70)
pen.pencolor("yellow")
pen.pendown()
pen.circle(50)
turtle.done()
name="wln"
mm="xuebi710068"
unname=input("用户名:")
unmm=input("密码:")
if unname==name and unmm==mm:
print("登录成功")
else:
print("gun")
\ No newline at end of file
name="1"
i=3
mm="123456"
while True
if i>0:
unname=input("用户名:")
unmm=input("密码:")
if unname=name and unmm=mm
print("欢迎")
break
if unname!=name:
print("请重新输入用户名")
continue
if unmm!=mm and unname=name:
print("请重新输入密码")
else:
print("no")
exit()
print("欢迎")
c=0
p=0
for i in range(3):
P=input("你要出什么?")
print("玩家出"+P)
import random
qwe=["石头","剪刀","布"]
C=random.choice(qwe)
print("电脑出"+C)
if P in qwe :
if P=="石头" and C=="剪刀" or P=="剪刀" and C=="布" or P=="布" and C=="石头" :
print("玩家赢")
p=p+1
elif C=="石头" and P=="剪刀" or C=="剪刀" and P=="布" or C=="布" and P=="石头" :
print("电脑赢")
c=c+1
else :
print("平局")
else :
print("请重新输入")
continue
print("玩家:电脑 "+str(p)+":"+str(c))
\ 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