"{a} Love {b} {c}".format(a="I", b="You", c="Python") 输出的结果是什么?
A: I Love You Python
B: {a}{b}{c}
C: ‘I Love You Python’
D: abc
A: I Love You Python
B: {a}{b}{c}
C: ‘I Love You Python’
D: abc
举一反三
- 字符串 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, b, c是什么参数? >>> "{a} love {b}".format(a = "I", b = "Python") 'I love Python'
- 以下字符串________是合法的。 A: "abc'def 'ghi" B: 'I love Python" C: "I love "love" Python" D: "I love Python''
- 以下字符串哪个是合法的() A: "I love "love"Python" B: "I love Python" C: I love Python' D: "abc'def'ghi"