本文共 342 字,大约阅读时间需要 1 分钟。
#-*- coding:utf-8 -*-# 获取用户输入内容first_num = raw_input('plesea your first num : ')# 打印用户first numprint "your first num is %r." % first_num# 获取用户输入内容second_num = raw_input('plesea your second num : ')# 打印用户second numprint "your second num is %r." % second_num# 打印两次输入num 总和print "Enter the sum you twice %r." % (int(first_num) + int(second_num))
转载地址:http://sfpta.baihongyu.com/