看板
[ Python ]
討論串[問題] split syntax
共 2 篇文章
首頁
上一頁
1
下一頁
尾頁
內容預覽:
I'm writing a python script about "split" function,. trying to use space to split a string.. It should work the same way as the built-in split functio
(還有907個字)
內容預覽:
inpu = "This is a sentence". word = "". output = []. for x in inpu:. if x not in " ":. word = word + x. else:. output.append(word). word = " ". output
(還有217個字)
首頁
上一頁
1
下一頁
尾頁