Commit 97b2b927 by BellCodeEditor

auto save

parent c5982004
Showing with 39 additions and 2 deletions
import csv
a=['北京','上海','深圳']
# f=open(r'C:\Users\19760\Desktop\1.csv','w',encoding='utf-8')
# f.write(",".join(a))
# f.close()
with open(r'C:\Users\19760\Desktop\1.csv','r',encoding='utf-8') as f:
# c1=list(csv.reader(f))
# print(c1)
# c2=f.read()
# print(c2)
c3=f.readlines()
t=[]
for i in c3:
t.append(i.strip('\n').split(','))
print(t)
\ No newline at end of file
import turtle
turtle.screensize(800,600,"blue")
turtle.color("red")
turtle.speed(10)
turtle.begin_fill()
turtle.circle(200,360,10)
turtle.end_fill()
turtle.goto(100,0)
turtle.right(90)
# turtle.clear()
# # turtle.reset()
turtle.done()
\ No newline at end of file
......@@ -2,7 +2,14 @@ username = "python" # 保存在服务器数据库中的用户账号(正确
userpassword = "123456" # 保存在服务器数据库中的用户密码(正确的密码)
# 请用input()实现用户输入账号、密码的功能
while True:
a,b=input("用户名:"),input("密码:")
if a==username and b==userpassword:
print("登录成功!")
break
elif a!=username:
print("用户名错误!")
elif b!=userpassword:
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