Fill: 字符串连接
填空题 中等
题目
Fill in 空白到 连接 words 使用 commas.
代码
words = ["apple", "banana", "cherry"]
result = ", ".___(words)
提示
方法那个 concatenates 字符串使用 separator 是...
解释
连接() concatenates 元素的 iterable 使用字符串 as separator. ', '.连接(['apple', 'banana', 'cherry']) = 'apple, banana, cherry'. separator calls 连接 on 列表.
相关资源
相关课程
- 字符串
字符串连接.
查阅不认识的术语
新手友好的术语表用大白话解释编程术语——变量、函数、DOM、Promise 等等。
解读错误信息
用大白话解释常见错误——什么意思、为什么发生、如何修复。
动手做项目
通过引导式项目应用所学,含起始代码与解决方案。