欧美三区_成人在线免费观看视频_欧美极品少妇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)論
主站蜘蛛池模板: 黄页网站免费高清在线观看 | 日本免费视频在线观看 | 亚洲人人 | 国产一区二区三区久久久久久久久 | 九九热中文字幕 | 免费看欧美成人性色生活片 | 国产目拍亚洲精品99久久精品 | 五月婷婷之综合激情 | 欧美aav| 欧美综合网 | 99热在线播放 | 一级大片久久 | www.com黄色| 男女性刺激爽爽免费视频 | 国产成人18黄网站免费 | 亚洲欧美日韩在线一区 | 视频一区 中文字幕 | 天天做天天爱天天影视综合 | 午夜插插 | 成人亚洲一区二区色情无码潘金莲 | 亚洲一区二区三区在线看 | 国产日韩欧美在线观看 | 欧美日韩在线观看视频 | 99国产精品2018视频全部 | 国产se| 婷婷色在线视频 | 1234成人网站 | 色777色 | 国产2区| 国产精品尤物在线观看一区 | 大喷水吹潮magnet | 日产精品乱码卡一卡2卡三 久久99精品久久久久久综合 | 九九九色 | 250pp久久新 全黄性性激高免费视频 | 亚洲在线xoxo日本在线 | 日本午夜精品一区二区三区电影 | 欧美亚洲黄色 | 二区在线视频 | www.成人.com| 欧美久久久网站 | 国产青青 |