# -*- coding: utf-8 -*- """ Created on Sun Apr 22 16:20:42 2018 @author: MyPC """ def main(): ‘‘‘ 将英尺转化为米数. 公式: 一英尺等于0.305米 ‘‘‘ feet = eval(input("input feet:")) meters = feet*0.305 print("%.2f feet is %.4f meters :"%(feet,meters)) if __name__ == "__main__": main()
原文地址:https://www.cnblogs.com/Wang-Y/p/8908279.html
时间: 2024-10-20 16:08:48