concatenate
常見例句
- Often, you need to concatenate a variable between two strings.
通常,您需要在兩個(gè)字符串之間連接一個(gè)變量。 - To see trends, concatenate log files and run a processing script on the combined output.
要查看趨勢(shì),連接日志文件并在合并的輸出上運(yùn)行后處理程序腳本。 - I've also used commas to separate arguments rather than using a period to concatenate the string first.
我使用逗號(hào)來(lái)分隔參數(shù),而不是使用句號(hào)將這些字符串連接在一起。 - 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.
如果給的輸入是一個(gè)數(shù)字和一個(gè)字符串,我將會(huì)把它們連接在一起,這實(shí)在是不正確的操作,但是無(wú)論如何,它就是會(huì)去這么做。
麻省理工公開課 - 計(jì)算機(jī)科學(xué)及編程導(dǎo)論課程節(jié)選 - 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.
我們也可以對(duì)字符串進(jìn)行切片,實(shí)際上這些都可以,因此字符串也支持選擇,切片。
麻省理工公開課 - 計(jì)算機(jī)科學(xué)及編程導(dǎo)論課程節(jié)選 - 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數(shù)組用加號(hào)串聯(lián)運(yùn)算,并把結(jié)果賦值給univs數(shù)組,接下來(lái)我顯示下univs的結(jié)果,你注意到我得到了一個(gè)。
麻省理工公開課 - 計(jì)算機(jī)科學(xué)及編程導(dǎo)論課程節(jié)選 返回 concatenate