Commit 13685e3e by BellCodeEditor

save project

parent a1599e0b
import turtle num=0
pen=turtle.Pen() while num<20:
screen=turtle.Screen() if num%2==1:
size=screen.textinput("提示","你想要多大的魔法阵?") print(num)
pen.circle(int(size),360) num+=1
pen.circle(int(size),360,3) \ No newline at end of file
pen.circle(int(size),60)
pen.circle(int(size),360,3)
turtle.done()
\ No newline at end of file
name=input("请输入名字") count=0
CJ=input("请输入成绩") while True:
print(name+"的英语成绩是:"+CJ) print("count的值为:"+str(count))
\ No newline at end of file if count==5:
continue
if count==10:
break
count+=1
print("c程序结束")
\ No newline at end of file
usename="fhhhb" import tist
usemima="we are dsb" import random
usename="123"
usemima="abc"
cishu=3 cishu=3
while True: while True:
if cishu==0: if cishu==0:
...@@ -7,27 +10,14 @@ while True: ...@@ -7,27 +10,14 @@ while True:
exit() exit()
name=input("请输入账户名:") name=input("请输入账户名:")
mima=input("请输入密码:") mima=input("请输入密码:")
print(tist.yzm)
yz=input("请输入验证码")
if usename==name and usemima==mima: if usename==name and usemima==mima and yz==tist.yzm:
print("登陆成功") print("登陆成功")
print("-"*30) print("-"*30)
break break
if usename!=name and usemima==mima:
print("账户名错误❌")
print("登陆失败")
print("-"*30)
cishu=cishu-1
if usemima!=mima and usename==name:
print("密码错误❌")
print("登陆失败")
print("-"*30)
cishu=cishu-1
else: else:
print("账户和密码错误❌")
print("登陆失败") print("登陆失败")
print("-"*30)
cishu=cishu-1
print("欢迎来到对抗路") print("欢迎来到对抗路")
a="冯慧恒" count=0
b=",男" while True:
c=",12" print("count的值为:"+str(count))
d=",喜欢玩手机" if count==5:
print(a+b+c+d) break
\ No newline at end of file if count==10:
continue
count+=1
print("程序结束")
\ No newline at end of file
import turtle import turtle
pen=turtle.Pen() pen=turtle.Pen()
pen.left(45) i=10
pen.circle(50,180)
pen.left(90) for i in range(300):
pen.forward(100) pen.forward(i)
pen.left(180) pen.right(91)
pen.circle(-50,180) i+=2
pen.right(90)
pen.forward(100)
turtle.done() turtle.done()
\ No newline at end of file
import random
yzm=""
random_list=["1","2","3","4","5","6","7","8","9","a","b","c","d","e"]
for i in range(4):
random_str=random.choice(random_list)
yzm=yzm+random_str
print(yzm)
\ No newline at end of file
...@@ -18,14 +18,11 @@ pen.penup() ...@@ -18,14 +18,11 @@ pen.penup()
pen.forward(30) pen.forward(30)
pen.left(90) pen.left(90)
pen.forward(50) import turtle
pen.pendown() pen=turtle.Pen()
pen.pencolor("green") i=1
pen.circle(50,360) while True:
pen.penup() for i in range(4):
pen.forward(90) forward(i)
pen.pendown() turtle.done()
pen.pencolor("yellow")
pen.circle(50,360)
pen.hideturtle()
turtle.done()
\ 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