发布于2019-08-05 12:03 阅读(1074) 评论(0) 点赞(5) 收藏(3)
var1, var2,var3... = exp1,exp2,exp3...
c = float(input('输入摄氏度'))
f = (9 / 5) * c + 32
print ('%.1f摄氏度 = %.1f华氏度' % (c, f))
输入摄氏度43 43.0摄氏度 = 109.4华氏度
import math
r,l = map(float,input().split(' '))
#l = float(input())
area = r * r * math.pi
volume = area * l
print ('The area is %.4f' % (area))
print ('The volume is %.1f' % (volume))
5.5 12 The area is 95.0332 The volume is 1140.4
yingchi = float(input())
mi = 0.305 * yingchi
print ('%.1f yingchi is %.4f mi' %(yingchi,mi))
16.5 16.5 yingchi is 5.0325 mi
shuiliang = float(input())
chushiwendu = float(input())
zuizhongwendu = float(input())
q = shuiliang * (zuizhongwendu - chushiwendu) * 4184
print ('能量是 %.1f'%(q))
55.5 3.5 10.5 能量是 1625484.0
chae,nianlilv = map(float,input().split(','))
#nianlilv = float(input())
lixi = chae * (nianlilv / 1200)
print ( 'The inrerest is %.5f'%(lixi))
1000,3.5 The inrerest is 2.91667
cssd,msd,t = map(float,input().split(','))
a = (msd-cssd) / t
print('加速度是 %.4f'%(a))
5.5,50.9,4.5 加速度是 10.0889
s = float(input())
a = s * (1 + 0.00417)
b = (s + a) * (1 + 0.00417)
c = (s + b) * (1 + 0.00417)
d = (s + c) * (1 + 0.00417)
e = (s + d) * (1 + 0.00417)
f = (s + e) * (1 + 0.00417)
print('账户总额 %.2f' %f)
100 账户总额 608.82
a = int(input())
b = a % 10
c = a // 100
d = ( a // 10 ) - ( a // 100)*10
d = b + c + d
print('和为%d'%(d))
999 和为27
作者:pinggo
链接:https://www.pythonheidong.com/blog/article/4479/9c5bd562d513fd6fa3f8/
来源:python黑洞网
任何形式的转载都请注明出处,如有侵权 一经发现 必将追究其法律责任
昵称:
评论内容:(最多支持255个字符)
---无人问津也好,技不如人也罢,你都要试着安静下来,去做自己该做的事,而不是让内心的烦躁、焦虑,坏掉你本来就不多的热情和定力
Copyright © 2018-2021 python黑洞网 All Rights Reserved 版权所有,并保留所有权利。 京ICP备18063182号-1
投诉与举报,广告合作请联系vgs_info@163.com或QQ3083709327
免责声明:网站文章均由用户上传,仅供读者学习交流使用,禁止用做商业用途。若文章涉及色情,反动,侵权等违法信息,请向我们举报,一经核实我们会立即删除!