Commit 57866790 by BellCodeEditor

save project

parent 96a4bcfc
Showing with 34 additions and 0 deletions
i=3
n='qqq'
s=123456
while True:
if i>0:
n1=input('用户名')
s1=int(input('用户密码'))
i-=1
if n1==n and s1==s:
print('密码正确')
break
if n1!=n:
print('用户名错误')
if s1!=s:
print('密码错误')
exit()
print('欢迎')
\ No newline at end of file
h=['red','green','orange','yellow']
import turtle
pen=turtle.Pen()
i=1
for i in range(300):
pen.forward(i)
pen.pencolor(h[i%4])
pen.right(91)
i+=1
turtle.done()
\ No newline at end of file
for a in range(1,10):
for j in range(1,a+1):
print(j,'*',a,'=',(j*a),end=' ')
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