Commit 6942d371 by BellCodeEditor

auto save

parent 490e3842
print('你个小垃圾')
\ No newline at end of file
ss=int(input('你今年几岁'))
xb=int(input('你是男是女(男的输1,女的输-1)'))
if ss<12:
ss=ss*0.134
elif ss<20:
ss=ss*0.135
elif ss<30 and xb==1:
ss=ss*0.08
elif ss<30 and xb==-1:
ss=ss*0.086
elif ss<40 and xb==1:
ss=ss*0.047
elif ss<40 and xb==-1:
ss=ss*0.0495
elif ss<70:
ss=ss*0.04
else:
ss=ss*0.056789
ss=ss-ss*0.46
xb=xb/16
sh=ss+xb
print('你的身高应该是'+str(sh)+'米')
age="12"
print("")
\ No newline at end of file
...@@ -2,7 +2,7 @@ import pygame ...@@ -2,7 +2,7 @@ import pygame
from pygame import locals from pygame import locals
pygame.init() pygame.init()
# 创建一个窗口 # 创建一个窗口
pygame.display.set_mode(660,480) pygame.display.set_mode((660,480))
while True: while True:
for event in pygame.get: for event in pygame.get:
if event.type == locals.QUIT : if event.type == locals.QUIT :
......
age=12
age=12
print("1"+age+"1")
\ 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