摘要: #需要在命令行执行 x = input("please input number1:") #输入格式 y = input("please input number2:") sum = int(x)+int(y) #要转换为数字(无论输入什么,都将作为字符串) print("{} + {} ={}".format(x,y,sum)) #输出格式 s... 阅读全文
posted @ 2016-10-18 16:41 Hsinwang 阅读(259) 评论(0) 推荐(0) 编辑