def f(): passprint(type(f()))以上代码输出结果为?
A: <class 'function'>
B: <class 'tuple'>
C: <class 'NoneType'>
D: <class 'str'>
A: <class 'function'>
B: <class 'tuple'>
C: <class 'NoneType'>
D: <class 'str'>
举一反三
- print(type(lambda:3))的输出结果是? <class 'float'>|<class 'NoneType'>|<class 'function'>|<class 'int'>
- Python语句print(type({1,2,3,4}))的输出结果是________。 A: <class ‘tuple’> B: <class ‘set’> C: <class ‘dict’> D: <class ‘list’>
- Python语句print(type([1,2,3,4]))的输出结果是【 】。 A: <class 'tuple'> B: <class 'dict'> C: <class 'set'> D: <class 'list'>
- type(1+2L*3.14)的结果是: A: <class ‘int’> B: <class ‘long’> C: <class ‘float’> D: <class ‘str’>
- Python 语句print(type(1//2))的输出结果是: A: <class ‘int’> B: <class ‘float’> C: <class ‘list’> D: <class ‘str’>