Commit cc3fe086 by BellCodeEditor

auto save

parent 659c3f14
a="123"
b="123456"
a1=input()
b1=input()
while True:
if a==a1 and b==b1:
print("登陆成功")
break
else:
print("登陆失败")
username = "python"
userpassword = "123456"
while True:
name = input("请输入用户名:")
password = input("请输入密码:")
if name == username and password == userpassword:
print("登录成功!")
break
if name == username and password != userpassword:
print("密码错误")
if name != username and password == userpassword:
print("用户名错误")
if name != username and password != userpassword:
print("错误!")
print("欢迎来到贝尔编程!")
\ No newline at end of file
a="123"
b="123456"
a1=input()
b1=input()
while True:
if a==a1 and b==b1:
print("登陆成功")
break
else:
print("登陆失败")
a1=input()
b1=input()
count=0
while True:
print("count的值为:" + str(count))
if count == 5:
break
if count == 10:
break
count = count+1
print("结束")
\ No newline at end of file
import turtle
turtle.screensize(0,0,"blue")
turtle.pencolor("pink")
turtle.fillcolor("yellow")
turtle.begin_fill()
for i in range(3):
turtle.forward(300)
turtle.left(120)
turtle.end_fill()
turtle.setheading(90) #根据题目效果要求,需要面向上方绘制
turtle.penup() #先抬起画笔再goto()移动
turtle.goto(0,-150)
turtle.pendown() #落下画笔准备绘制
turtle.fillcolor("green")# 设置圆的填充颜色,默认之前设置的黄色
turtle.pencolor("red")# 此处可进行画圆时的画笔颜色设置
turtle.begin_fill()
turtle.circle(-150,180)
turtle.end_fill()
#turtle.pencolor("red") 画笔颜色应在绘制前设置
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