以下代码段的执行结果是( )。string ="i love python""".join(reversed(string.split()))
A: i love python
B: python love I
C: nohtyp evol I
D: i evol nohtyp
A: i love python
B: python love I
C: nohtyp evol I
D: i evol nohtyp
举一反三
- 字符串 s = “I love Python”,以下程序的输出结果是: s = “I love Python” ls = ssplit() lsreverse() print(ls) A: ‘Python’, ‘love’, ‘I’ B: Python love I C: None D: [‘Python’, ‘love’, ‘I’]
- 字符串 s = “I love Python”,以下程序的输出结果是( )。s = "I love Python" ls = s.split() print(ls) A: ‘I’, ‘love’, ‘Python’ B: I love Python C: None D: D. [‘I’, ‘love’,‘Python’ ]
- 以下字符串合法的是(). A: "abe 'def'ghi" B: "I love"love" Python" C: "I love Python' D: 'I love' Python "
- 以下字符串________是合法的。 A: "abc'def 'ghi" B: 'I love Python" C: "I love "love" Python" D: "I love Python''
- 交互式执行eval("'I Love Python'")的输出结果为'I Love Python'