程序段如下:import jsondt = {'b':2,'c':4,'a':6}s2 = json.dumps(dt,sort_keys=True,indent=4)print(type(s2))print函数输出的结果是( )
A: <class 'dict'>
B: <class 'str'>
C: <class 'tuple'>
D: <class 'list'>
A: <class 'dict'>
B: <class 'str'>
C: <class 'tuple'>
D: <class 'list'>
举一反三
- 程序段如下:import jsondt = {'b':2,'c':4,'a':6}s2 = json.dumps(dt,sort_keys=True,indent=4)dt1 = json.loads(s2)print(type(dt1))print函数输出的结果是( ) A: <class 'list'> B: <class 'dict'> C: <class 'tuple'> D: <class 'str'>
- Python语句print(type({1,2,3,4}))的输出结果是________。 A: <class ‘tuple’> B: <class ‘set’> C: <class ‘dict’> D: <class ‘list’>
- Python 语句print(type(1//2))的输出结果是: A: <class ‘int’> B: <class ‘float’> C: <class ‘list’> D: <class ‘str’>
- Python语句print(type([1,2,3,4]))的输出结果是【 】。 A: <class 'tuple'> B: <class 'dict'> C: <class 'set'> D: <class 'list'>
- Python语句print(type([1,2,3,4]))的输出结果是______。 A: <class ‘tuple’> B: <class ‘dict’> C: <class ‘set’> D: <calss ‘list’>