Python
num1 = int(input("num1:")) # 获取输入的字符,低级版本用raw_input()
num2 = int(input('num2:'));
print(num1 + num2);
print(num1 - num2);
print(num1 * num2);
print(num1 / num2);
input()
num1 = int(input("num1:")) # 获取输入的字符,低级版本用raw_input()
num2 = int(input('num2:'));
print(num1 + num2);
print(num1 - num2);
print(num1 * num2);
print(num1 / num2);
input()