题目
题目
多项选择题

Question24 Which of the following method(s) can be used to concatenate two strings in Python? Select one or more alternatives: str.append() + operator str.concat() str.join() ResetMaximum marks: 3 Flag question undefined

选项
A.str.append()
B.+ operator
C.str.concat()
D.str.join()
查看解析

查看解析

标准答案
Please login to view
思路分析
Question restatement: Which of the following method(s) can be used to concatenate two strings in Python? Select one or more alternatives: str.append() + operator str.concat() str.join() Option-by-option analysis: - str.append(): This is not a valid string operation in Python. There is no append method on Python strings (strings are immutable, and list.append exists for lists). Misconception: thinking strings hav......Login to view full explanation

登录即可查看完整答案

我们收录了全球超50000道考试原题与详细解析,现在登录,立即获得答案。

更多留学生实用工具

加入我们,立即解锁 海量真题独家解析,让复习快人一步!