程序段如下:import jsondt = {'b':2,'c':4,'a':6}s1 = json.dumps(dt)s2 = json.dumps(dt,sort_keys=True,indent=4)print(s1==s2)print函数输出的结果是( )
A: false
B: False
C: True
D: true
A: false
B: False
C: True
D: true
举一反三
- 程序段如下: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'>
- 程序段如下: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'>
- 程序段如下:import jsondt = {'b':2,'c':4,'a':6}s1 = json.dumps(dt)print(s1)print函数输出的结果是( ) A: {"a":6,"b":2,"c":4} B: {"a":6,"b":2,"c":4} C: {2, 4, 6} D: {"b","c" ,"a"}
- 写出程序段输出结果:String s1=new String("abc");String s2="abc";System.out.print((s1==s2)+",");System.out.println(s1.equals(s2)); A: false,false B: false,true C: true,true D: true,false
- s1="abc"s2="ABC"print(s1==s2.lower()) A: True B: False C: false D: true