在ipython中使用脚本发现type(x)无法显示内容
[root@linux py_project]# cat test2.py#test2.py
print("Please input 3 values")
number1=int(input("Please input the first number"))
number1
number2=int(input("Please input the second number"))
number2
number3=int(input("Please input the third number"))
number3
minimal=number1
if number2<=minimal:
minimal=number2
if number3<=minimal:
minimal=number3
print("The minimum number is",minimal)
[root@linux py_project]# vim test2.py
[root@linux py_project]# cat test2.py
#test2.py
print("Please input 3 values")
number1=int(input("Please input the first number"))
number1
number2=int(input("Please input the second number"))
number2
number3=int(input("Please input the third number"))
number3
minimal=number1
if number2<=minimal:
minimal=number2
type(minimal)
if number3<=minimal:
minimal=number3
type(minimal)
print("The minimum number is",minimal)
type(minimal)
[root@linux py_project]# ipython test2.py
Please input 3 values
Please input the first number12
Please input the second number34
Please input the third number22
The minimum number is 12