#-*- coding:utf-8 -*-
# 获取用户输入内容
first_num = raw_input('plesea your first num : ')
# 打印用户first num
print "your first num is %r." % first_num
# 获取用户输入内容
second_num = raw_input('plesea your second num : ')
# 打印用户second num
print "your second num is %r." % second_num
# 打印两次输入num 总和
print "Enter the sum you twice %r." % (int(first_num) + int(second_num))
第一个python程序简单加法计算器
最新推荐文章于 2024-07-05 09:37:51 发布