Commit a3850da7 by BellCodeEditor

save project

parent 370cf254
Showing with 57 additions and 9 deletions
import turtle
pen=turtle.Pen()
pen.speed(8)
pen.pensize(10)
screen=turtle.Screen()
a=screen.textinput("提示","请输入你想画圆圈大小")
pen.penup()
pen.goto(-100,0)
pen.pendown()
pen.pencolor("blue")
pen.circle(int(a))
pen.penup()
pen.forward(int(a)+20)
pen.pendown()
pen.pencolor("red")
pen.circle(int(a))
pen.penup()
pen.forward(int(a)+20)
pen.pendown()
pen.pencolor("black")
pen.circle(int(a))
pen.penup()
pen.left(90)
pen.forward(int(a)-20)
pen.left(90)
pen.forward(int(a)-30)
pen.pendown()
pen.pencolor("yellow")
pen.circle(int(a))
pen.penup()
pen.forward(int(a)+20)
pen.pendown()
pen.pencolor("green")
pen.circle(int(a))
turtle.done()
\ No newline at end of file
import turtle
screen=turtle.Screen()
a=screen.textinput("酒驾判断","输入该驾驶员的酒精程度")
b=int(a)
if b<20:
print("可以继续开车")
elif 20<b<80:
print("达到酒驾标准,不能开车")
else:
print("醉驾")
username = "python" # 保存在服务器数据库中的用户账号(正确的账号) unname="1"
userpassword = "123456" # 保存在服务器数据库中的用户密码(正确的密码) unmm="1"
while True:
# 请用input()实现用户输入账号、密码的功能 name=input("请输入用户名")
mm=input("请输入密码")
if name==unname and mm==unmm:
print("登录成功")
# 如果用户输入的账号、密码正确,提示登陆成功 break
\ No newline at end of file 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