''' a = eval(input()) s = "Hello World" l =len(s) if(a==0): print(s) elif(a>0): for i in range (0,l-1,2): print(s[i],s[i+1],sep='')#默认字符间有空格 print("d") else: for i in range(0,l): print(s[i]) ''' a = input() for i in a: print(i,end='') 123 123 #默认换行 123 1 2 3
x= 0.365
y=36.251
print("{:.2f}, {:.2f}".format(x,y))
0.36, 36.25#不会四舍五入
he,we = eval(input()) bmi = we/pow(he,2) print("BMI 数值为 : {:.2f}".format(bmi)) who,nat = "",'' if bmi < 18.5: who,nat = "偏瘦","偏瘦"