1
我使用Win 10 64位,安装了最新的Anaconda 4.3.1,其中包括Python 3.6.0和ipython 5.1.0。ipython 5.1.0在执行输入后停止
的代码我试图
# Simple Python program to Add Two Numbers
number1 = input(" Please Enter the First Number: ")
number2 = input(" Please Enter the second number: ")
# Using arithmetic + Operator to add two numbers
sum = float(number1) + float(number2)
print('The sum of {0} and {1} is {2}'.format(number1, number2, sum))
问题执行输入功能IPython的解释终止时运行。 相同的代码工作正常使用Python
没有什么我可以看到你的代码错了,一个d运行相同的代码适用于我。 :-S –