Commit 1e3625bb by BellCodeEditor

auto save

parent 26f0bbf3
import turtle
a=input("请输入一个数字,代表爸爸的身高")
b=input("请输入一个数字,代表妈妈的身高")
c=input("请输入一个数字(1或-1)")
print((int(a)+int(b)+13*int(c))/2)
\ No newline at end of file
import turtle
turtle.fillcolor('black')
turtle.circle(100)
turtle.begin_fill()
turtle.circle(50,180)
turtle.circle(-50,180)
turtle.circle(-100,180)
turtle.end_fill()
turtle.done()
\ No newline at end of file
import turtle
turtle.circle(100)
turtle.circle(100,360,3)
turtle.circle(100,180)
turtle.circle(100,360,3)
turtle.done()
\ No newline at end of file
No preview for this file type
++ "b/ok \345\260\261\350\277\231\346\240\267.py"
This diff is collapsed. Click to expand it.
No preview for this file type
import pygame n = int(input("输入一个年份"))
from pygame import locals if n%400 == 0 or (n%2 and not n%0 != 0):
print("yes")
# 初始化pygame,为使用pygame做准备 else:
pygame.init() print("no")
# 创建一个窗口
screen=pygame.display.set_mode((660,480))
bg=pygame.image.load("bg.png") \ No newline at end of file
right=pygame.image.load("right.png")
body=pygame.image.load("body.png")
apple=pygame.image.load("apple.png")
while True:
for i in pygame.event.get():
if i.type == locals.QUIT:
exit()
screen.blit(bg,(0,0))
screen.blit(right,(240,120))
screen.blit(body,(210,120))
screen.blit(body,(180,120))
screen.blit(body,(180,90))
screen.blit(apple,(330,240))
pygame.display.update()
\ No newline at end of file
No preview for this file type
++ "b/\346\210\221\346\230\257wuboyi \346\261\211\346\262\275\346\234\200\345\270\205\347\232\204.py"
++ "b/\346\261\211\346\262\275\347\216\213\345\210\230\345\210\232.py"
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