9 lines
269 B
Python
9 lines
269 B
Python
a=input("请输入您的年龄")
|
|
print(eval(a),type(a),type(eval('11')))
|
|
# type(a) 等价于 type('88'),即返回值为:<class 'str'>
|
|
print("--------------")
|
|
b="北京欢迎您!"
|
|
print(eval('b'),type(eval('b')))
|
|
print("--------------")
|
|
# print(eval(b))
|
|
# 500#报错 |