Commit d75d9257 by BellCodeEditor

auto save

parent c075cadc
a=int(input("请输入a"))b=int(input("请输入b"))
c=int(input("请输入c"))
if b>a:
a,b=b,a
if c>a:
a,c=c,a
if c>b:
b,c=c,b
print(a,b,c)
a=int(input("请输入"))
if a%3==0 and a%5==0:
print("能")
else:
print("不能")
......@@ -11,7 +11,9 @@ stop_img = pygame.image.load('stop.png') # 暂停按钮
last_img = pygame.image.load('last.png') # 上一曲按钮
next_img = pygame.image.load('next.png') # 下一曲按钮
logo_img = pygame.image.load('logo.png') # 中间logo
pygame.mixer.music.load('歌曲4.ogg')
pygame.mixer.music.load('1.wav')
pygame.mixer.music.play()
while True:
for event in pygame.event.get():
......@@ -34,21 +36,24 @@ while True:
pygame.mixer.music.set_volume(volume)
if event.key == locals.K_DOWN:
volume -= 0.1
if volume < 0 <or volume==0:
if volume < 0 or volume==0:
volume = 0
pygame.mixer.music.set_volume(volume)
if event.type == locals.MOUSEBUTTONDOWN:
click += 1
if click%2 == 0:
pygame.mixer.music.unpause()
start = stop_img
else:
pygame.mixer.music.pause()
start = play_img
if volume <=0:
volume = 0
if exent.button==1:
x,y=exent.pos
if x>270 and x<370 and y>350 and y<450:
click+=1
if click%2==0:
play_button=stop_img
pygame.mixer.music.unpause()
else:
play_button=stop_img
pygame.mixer.music.pause()
if pygame.mixer.music.get_busy() == False:
num+=1
pygame.mixer.music.play()
......
a=(100,200,300)
x,y,z=a
print('x的值为:',x)
print('y的值为:',y)
\ No newline at end of file
a=input("请输入")
a=input("请输入")
b=input("请输入")
result=int(a)+,-,*,/int(b)
print(result)
\ No newline at end of file
ffd
ffd
\ No newline at end of file
a=int(input("请输入您行李的重量"))
a=int(input("请输入您行李的重量"))
if a<20:
b=a*1.68
print(str(b)+"元")
else:
b=a*1.98
print(str(b)+"元")
a=int(input("请输入你的选择"))
a=int(input("请输入你的选择"))
if a==1:
print("支付宝支付")
elif a==2:
print("微信支付")
elif a==3:
print("现金支付")
else:
print("输入有误")
a=int(input("请输入感冒指数"))
a=int(input("请输入感冒指数"))
if a<=0 and a>=6:
print("少发")
elif a>=7 and a<=19:
print("较易发")
elif a>=20 and a<=30:
print("易发")
elif a>=31 and a<=61:
print("极易发")
else:
print("输入的不正确")
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