亚洲免费在线-亚洲免费在线播放-亚洲免费在线观看-亚洲免费在线观看视频-亚洲免费在线看-亚洲免费在线视频

Python-1-Day

系統(tǒng) 1883 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)論
主站蜘蛛池模板: 九九51精品国产免费看 | 国产精品国产三级国产专区5o | 麻豆精品在线 | 国产中文字幕第一页 | 亚洲一级黄色大片 | 久久久高清国产999尤物 | 日本aⅴ在线不卡免费观看 日本aaaa | 这里只有精品视频 | 亚洲区精品久久一区二区三区 | 四虎地址8848 | 亚洲黄色成人 | 亚洲视频一区二区在线观看 | 成年女人视频在线观看免费 | 老王午夜69精品影院 | 国产成人短视频 | 日韩 三级 | 99久久免费看精品国产一区 | 亚洲国产日韩欧美高清片a 亚洲国产日韩欧美一区二区三区 | 日本 亚洲 欧美 | 亚洲国产高清视频在线观看 | 欧美亚洲国产一区二区三区 | 欧美高清视频www夜色资源网 | 97视频在线观看视频最新 | 亚洲综合图色 | 91精品国产91| 老司机永久免费视频 | 久久97精品久久久久久清纯 | 欧美xxxxx九色视频免费观看 | 中文在线免费不卡视频 | 羞羞视频免费网站在线 | 美女网站色视频 | 久久综合图区亚洲综合图区 | 中文字幕在线最新在线不卡 | 国产一区二区三区欧美 | 日本三级中文字幕 | 男人爱看的网站 | 两个人高清视频图片中文字幕 | 亚洲精品国产专区一区 | 午夜精品久久久久久久99热浪潮 | 国产亚洲精aa在线观看香蕉 | 亚洲国产成人久久一区二区三区 |