티스토리 뷰

공부

[Python] split string by length

승가비 2020. 4. 9. 23:39
728x90

https://stackoverflow.com/questions/13673060/split-string-into-strings-by-length

 

Split string into strings by length?

Is there a way to take a string that is 4*x characters long, and cut it into 4 strings, each x characters long, without knowing the length of the string? For example: >>>x = "qwertyui" &...

stackoverflow.com

 

728x90

'공부' 카테고리의 다른 글

[Linux] kill a proccess by using port  (0) 2020.04.09
[Python] pip install -r requirements.txt  (0) 2020.04.09
[Python] math ceil & floor & trunc & round  (0) 2020.04.09
[Python] replace string  (0) 2020.04.09
[MySQL] Decimal(M, D)  (0) 2020.04.09
댓글