IT Log

[Python] Multiline String (여러줄 문자열) 본문

Python

[Python] Multiline String (여러줄 문자열)

newly0513 2021. 6. 6. 16:29
728x90
반응형
  • str 타입은 "" 또는 ''을 사용하여 선언
str = "one"

또는

str = 'one'

  • 여러줄인 str을 선언하려면 : 
multi_str = """one
two
three
four
five """

또는


multi_str = '''one
two
three
four
five '''

 

 

728x90
반응형

'Python' 카테고리의 다른 글

[Python] Ray Tutorial  (0) 2021.06.07
[Python] iterable  (0) 2021.06.06
[Python] WARNING: The script flask is installed in  (0) 2021.06.06
[Python] Selenium (Keys)  (1) 2021.06.06
[Python] Selenium (Action Chains)  (0) 2021.06.06
Comments