concatenate
常见例句
- Often, you need to concatenate a variable between two strings.
通常,您需要在两个字符串之间连接一个变量。 - To see trends, concatenate log files and run a processing script on the combined output.
要查看趋势,连接日志文件并在合并的输出上运行后处理程序脚本。 - I've also used commas to separate arguments rather than using a period to concatenate the string first.
我使用逗号来分隔参数,而不是使用句号将这些字符串连接在一起。 - If you give me a number and a string, I'm going to concatenate them together, it's really different operations, but nonetheless, it's what it's going to do.
如果给的输入是一个数字和一个字符串,我将会把它们连接在一起,这实在是不正确的操作,但是无论如何,它就是会去这么做。
麻省理工公开课 - 计算机科学及编程导论课程节选 - That is we'd like to be able to get pieces of them out. We'd like to be able add them together or concatenate them together.
我们也可以对字符串进行切片,实际上这些都可以,因此字符串也支持选择,切片。
麻省理工公开课 - 计算机科学及编程导论课程节选 - So I can concatenate techs plus ivys and assign that result to univs, and then when I print it you'll notice I just get a list of five strings.
和ivys数组用加号串联运算,并把结果赋值给univs数组,接下来我显示下univs的结果,你注意到我得到了一个。
麻省理工公开课 - 计算机科学及编程导论课程节选 返回 concatenate