运行以下程序,输出结果的是:
print(" love “join([“Everyday”,“Yourself”,“Python”,]))
print(" love “join([“Everyday”,“Yourself”,“Python”,]))
举一反三
- 字符串 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’ ]
- 以下程序的输出结果是______。print(len(list('i love python'))) A: 3 B: 13 C: 1 D: 11
- 执行以下程序后,要输出ab44cd46结果,该执行的选项是______。 ls=['ab','44','cd','46'] ls.reverse() A: print(''.join(ls[-1::])) B: print(''.join(ls[-1::-1])) C: print(''.join(ls[1:])) D: print(''.join(ls))
- 执行以下代码输出结果的是a = 〃Python〃print(“:”.join(a)) A: P:y:t:h:o:n B: Python C: P:y:t:h:o:n: D: :Python