Commit bd5af852 by BellCodeEditor

save project

parent 1821376f
apple.png

2.05 KB

bg.png

22.5 KB

#别用我的,谢谢,别删,你可以新建。十分感谢。。。。你也可以用其他的、
import turtle
screen=turtle.Screen()
screen.bgcolor("light blue")
pen=turtle.Pen()
pen.penup()
pen.goto(100,-100)
pen.write("hi,诺一\n我也喜欢\n---悟空",font=("Times",20,"narmal"))
pen.hideturtle()
pen=turtle.Pen()
len=60
len=screen.textinput("提示","你想要多大的爱心")
lovesize=int(len)
pen.pencolor("red")
pen.pensize(5)
pen.left(45)
pen.forward(lovesize*2)
pen.circle(lovesize,180)
pen.right(90)
pen.circle(lovesize,180)
pen.forward(lovesize*2)
pen.hideturtle()
turtle.done()
\ No newline at end of file
body.png

1.4 KB

down.png

2.01 KB

left.png

2.07 KB

File added
right.png

2.05 KB

import pygame
from pygame import locals:
# 初始化pygame,为使用pygame做准备
pygame.init()
# 创建一个窗口
screen=pygame.display.set_mode((640,480))
background=pygame.image.load("bg.png")
right=pygame.image.load("right.png")
boby=pygame.image.load("boby.png")
food=pygame.image.load("food.png")
while True:
for event in pygame.event.get():
if event.type==locals.QUIT:
exit()
screen=blit(background(0,0))
screen=blit(food(0,0))
screen=blit(food(0,480))
screen=blit(food(630,0))
screen=blit(food(630,480))
pygame,display.update()
\ No newline at end of file
i=3
usename="wwww"
userpassword="123456"
while True:
if i>0:
name=input("请输入用户名")
password=input("请输入密码")
if name == usename and password == userpassword:
print("登陆成功")
break
elif name != usename:
print("用户名错误,请重新输入")
continue
else password != userpassword:
print("密码错误。请重新输入")
print("欢迎来到贝尔编程")
\ No newline at end of file
up.png

2.05 KB

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