12. 编写一个python程序,输入两个数,输出两数之和。
#python 3.6
#蔡军生
#http://blog.csdn.net/caimouse/article/details/51749579
#
x = int(input('请输入第一个数:'))
y = int(input('请输入第二个数:'))
print('两个数之和为:', x + y)
结果输出如下:
请输入第一个数:12
请输入第二个数:222
两个数之和为: 234
12. 编写一个python程序,输入两个数,输出两数之和。
#python 3.6
#蔡军生
#http://blog.csdn.net/caimouse/article/details/51749579
#
x = int(input('请输入第一个数:'))
y = int(input('请输入第二个数:'))
print('两个数之和为:', x + y)
结果输出如下:
请输入第一个数:12
请输入第二个数:222
两个数之和为: 234