Commit 37d7c382 by BellCodeEditor

auto save

parent 835a97cc
# import turtle
# turtle.width(10)
# turtle.fillcolor("red")
# turtle.begin_fill()
# turtle.write("dsfasdf",font=("黑体",30,"normal"))
# turtle.circle(100)
# turtle.end_fill()
# print(turtle.setx(0))
# turtle.done()
# print(eval("Hello"))
# print("{:.1f}".format(3.16))
# print(3%2)
print(9999//3600,"小时",9999%3600//60,"分钟",9999%3600%60,"秒",sep="")
\ No newline at end of file
# r=eval(input("输入半径:"))
# pi=3.141
# d=2*r
# c=2*pi*r
# s=pi*r*r
# print("圆和直径是:",round(d,2)) #圆和直径
# print("圆的周长:",round(c,2))
s1="abcded"
s2="d"
n=s1.count(s2,3)
print(n)
\ No newline at end of file
import os
file=['"C:\\Program Files (x86)\\Tencent\\QQLive\\QQLive.exe"','"C:\\Program Files\\PremiumSoft\\Navicat 15 for SQLite\\navicat.exe"']
print('''
请选择要执行的程序:
1.腾讯视频
2.数据库连接器
========''')
c=input("请选择:")
if c=='1':
pp=os.system(file[0])
if c=='2':
pp.os.system(file[1])
# import turtle
# turtle.colormode(255)
# turtle.speed(11)
# turtle.pencolor(1,255,100)
# for i in range(1,50):
# turtle.pendown()
# turtle.goto(0,-(i*10))
# turtle.circle(i)
# turtle.penup()
# turtle.left(90)
# turtle.home()
# turtle.done()
# a=7
# print("2+5=%s"%a)
# import turtle
# turtle.circle(-50,steps=3)
# turtle.done()
print(ord("a"))
for k in range(10):
for i in range(10):
if i<5:
print("con")
continue
if i>5:
print("br")
break
if k>5:
print("ex")
exit()
print("aa")
\ No newline at end of file
for a in range(0,10):
for b in range(0,10):
for c in range(0,10):
for d in range(0,10):
if int('8'+str(a)+str(b)+str(c)+str(d))+int(str(a)+str(b)+str(c)+str(d)+'6')==121410:
print(a,b,c,d)
\ No newline at end of file
......@@ -13,6 +13,7 @@ right = pygame.image.load('right.png')
food = pygame.image.load('apple.png')
body = pygame.image.load('body.png')
x,y=240,120
po=[(180,)]
while True:
for event in pygame.event.get():
if event.type == locals.QUIT:
......@@ -29,12 +30,12 @@ while True:
haedng="down"
screen.blit(background, (0, 0))
x+=30
po.append((x,y))
po.pop(0)
screen.blit(right, po[-1])
for i in range(len(po)-1):
screen.blit(body,po[i])
screen.blit(right, (x, y))
screen.blit(body, (210, 120))
screen.blit(body, (180, 120))
screen.blit(body, (180, 90))
screen.blit(food, (360, 300))
for
if heading="left"
if heading="right"
......
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