标签:appdata float sum tor pycha pytho user ext2 format
num1 = input(‘请输入一个数字:‘) num2 = input(‘请输入一个数字:‘) sum12 = float(num1) + float(num2) print(‘数字 {0} 和 {1} 的相加结果为:{2}‘.format(num1,num2,sum12))
C:\Users\Administrator\AppData\Local\Programs\Python\Python36\python.exe C:/Users/Administrator/PycharmProjects/untitled2/text2.py 请输入一个数字:1 请输入一个数字:2 数字 1 和 2 的相加结果为:3.0 Process finished with exit code 0
标签:appdata float sum tor pycha pytho user ext2 format
原文地址:https://www.cnblogs.com/aaaadaztz/p/9597206.html