Commit ee125b61 by BellCodeEditor

auto save

parent 47032867
###计算长方形的面积###
a=6#长方形的长
b=3#长方形的宽
s=a*b#长方形的面积
print(s)
\ No newline at end of file
import turtle
t=turtle.Turtle()
for i in range(4):
t.forward(200)
t.left(90)
t.penup()
t.goto(100,100)
t.dot(20,"red")
t.goto(60,100)
t.dot(20,"red")
t.goto(140,100)
t.dot(20,"red")
t.hideturtle()
turtle.done()
\ No newline at end of file
f=open(r"C:\Users\MAYI_robot\Desktop\zzh.txt","w",encoding='utf-8')
f.write('元旦快乐\n')
jzh = "111111" # 保存在服务器数据库中的用户账号(正确的账号)
mm = "3.14"
i=3
while True:
a=input("输入账号:")
b=input("输入密码:")
if a==jzh and b==mm:
print("账号、密码正确,登陆成功")
break
else:
print("达咩")
if i>0:
i=i-1
a=input("输入账号:")
b=input("输入密码:")
if a==jzh and b==mm:
print("账号、密码正确,登陆成功")
break
if a!=jzh:
print("陈浩不存在")
print("你还有"+str(i)+"次机会")
continue
if b!=mm:
print("陈浩错误")
print("你还有"+str(i)+"次机会")
print("明年来吧")
exit()
f=open(r"C:\\Users\MAYI_robotDesktop\zzh.txt","w",encoding='utf-8')
f=open(r"C:\\Users\MAYI_robotDesktop\zzh.txt","w",encoding='utf-8')
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