欧美三区_成人在线免费观看视频_欧美极品少妇xxxxⅹ免费视频_a级毛片免费播放_鲁一鲁中文字幕久久_亚洲一级特黄

Python-1-Day

系統(tǒng) 1730 0

Python-1-Day_第1張圖片

?

C = float(input("Enter a degree in Celsius:"))
F = (9/5) * C + 32
print("{0} Celsius is {1} Fahrenheit".format(C,F))

                  Enter a degree in Celsius:43
43.0 Celsius is 109.4 Fahrenheit
                
Python-1-Day_第2張圖片

import math
R,H = eval(input("Enter the radius and length of a cylinder: "))
area = R * R * math.pi
volume = area * H
print('The area is {0}'.format("%.4f"%area))
print('The volume is {0}'.format("%.1f"%volume))

                  Enter the radius and length of a cylinder:5.5,12
The area is 95.0332
The volume is 1140.4
                
Python-1-Day_第3張圖片

feet = float(input("Enter a value for feet: "))
meters = feet * 0.305
print('{0} feet is {1} meters'.format(feet,meters) )

                  Enter a value for feet:16.5
16.5 feet is 5.0325 meters
                
Python-1-Day_第4張圖片

?

water = float(input("Enter a value for feet: "))
initial = float(input("Enter the initial temperature: "))
final = float(input("Enter the final temperature: "))
energy = water * (final - initial) * 4184
print('The energy needed is {0}'.format(energy))

                  Enter a value for feet: 55.5
Enter the initial temperature: 3.5
Enter the final temperature: 10.5
The energy needed is 1625484.0
                
Python-1-Day_第5張圖片

balance,interestrate = eval(input("Enter balance and interest rate (e.g., 3 for 3 %):"))
interest = balance * (interestrate/1200)
print('The interest is {0}'.format("%.5f"%interest))

                  Enter balance and interest rate (e.g., 3 for 3 %):1000,3.5
The interest is 2.91667
                
                
                  Python-1-Day_第6張圖片
                
                

v0,v1,t = eval(input("Enter v0,v1,and t:"))
a=(v1-v0)/t
print('The averager acceletion {0}'.format("%.4f"%a))

                  Enter v0,v1,and t:5.5,50.9,4.5
The averager acceletion 10.0889
                
Python-1-Day_第7張圖片

from _pydecimal import Decimal
amount = Decimal(input("Enter the monthly saving amount : "))
amount1 = Decimal(0)
for i in range(6):
amount1 = (amount+amount1) * Decimal(1 +0.00417)
print('After the sixth month,the account value is {0}'.format("%.2f"%amount1))

                  Enter the monthly saving amount : 100
After the sixth month,the account value is 608.82
                

number = float(input("Enter a number between 0 and 1000 : "))
ge = int(number % 10)
shi = int(number // 10 % 10)
qian = int(number // 100)
digits = ge + shi + qian
print('The sum of the digits is {0}'.format(digits))

                  Enter a number between 0 and 1000 : 999
The sum of the digits is 27
                
                
              

更多文章、技術(shù)交流、商務(wù)合作、聯(lián)系博主

微信掃碼或搜索:z360901061

微信掃一掃加我為好友

QQ號(hào)聯(lián)系: 360901061

您的支持是博主寫作最大的動(dòng)力,如果您喜歡我的文章,感覺我的文章對(duì)您有幫助,請(qǐng)用微信掃描下面二維碼支持博主2元、5元、10元、20元等您想捐的金額吧,狠狠點(diǎn)擊下面給點(diǎn)支持吧,站長(zhǎng)非常感激您!手機(jī)微信長(zhǎng)按不能支付解決辦法:請(qǐng)將微信支付二維碼保存到相冊(cè),切換到微信,然后點(diǎn)擊微信右上角掃一掃功能,選擇支付二維碼完成支付。

【本文對(duì)您有幫助就好】

您的支持是博主寫作最大的動(dòng)力,如果您喜歡我的文章,感覺我的文章對(duì)您有幫助,請(qǐng)用微信掃描上面二維碼支持博主2元、5元、10元、自定義金額等您想捐的金額吧,站長(zhǎng)會(huì)非常 感謝您的哦!!!

發(fā)表我的評(píng)論
最新評(píng)論 總共0條評(píng)論
主站蜘蛛池模板: 欧美专区在线视频 | 精品国产一级毛片 | 日日插夜夜操 | 国产免费观看视频 | 欧美午夜久久 | 我要看欧美一级毛片 | 成年人激情在线 | 中国xxnxx免费| 天天色综合影视 | 国产伦理一区二区三区 | 国产99精品 | a天堂资源在线观看 | 综合精品 | 久久综合丝袜长腿丝袜 | 高清在线不卡 | 久久久久久久国产精品电影 | 精品人成 | avtom影院入口永久在线观看 | 亚洲第一区第二区 | 亚洲品质自拍视频网站 | 国产精品吹潮在线观看中文 | 久久国产亚洲 | 日韩在线观看视频一区 | 五月婷婷六月爱 | 国内色综合精品视频在线 | 亚洲精品久久久一区二区三区 | 久久精品一区二区免费播放 | 欧美成人做性视频在线播放 | 日本老妇人乱视频 | 狠狠天天| 国产在线不卡 | 国产精品国产 | 色妞妞视频 | 97理论三级九七午夜在线观看 | 国产成年网站 | 久欧美 | 日韩中文字幕 | 亚洲高清视频在线 | 日本三级带日本三级带黄国产 | 亚洲在线日韩 | 中文天堂网 |