CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutSign UpSign In
jackfrued

CoCalc provides the best real-time collaborative environment for Jupyter Notebooks, LaTeX documents, and SageMath, scalable from individual users to large groups and classes!

GitHub Repository: jackfrued/Python-100-Days
Path: blob/master/Day01-15/code/Day02/centigrade.py
Views: 729
1
"""
2
将华氏温度转换为摄氏温度
3
F = 1.8C + 32
4
5
Version: 0.1
6
Author: 骆昊
7
Date: 2018-02-27
8
"""
9
10
f = float(input('请输入华氏温度: '))
11
c = (f - 32) / 1.8
12
print('%.1f华氏度 = %.1f摄氏度' % (f, c))
13
14