For the complete documentation index, see llms.txt. This page is also available as Markdown.

4.3.6. 문자열 표시

문자열(String)이란 문자와 단어 등으로 구성된 문자들의 집합을 의미합니다. 파이썬은 같은 유형의 따옴표가 문자열을 시작하고 끝내는 한 문자열 리터럴을 나타 내기 위해 단일 ( '), 이중 ( ") 및 삼중 (' '' ''" ") 따옴표를 사용합니다.

삼중 따옴표는 여러 줄에 걸쳐 문자열을 연결하는 데 사용됩니다. 예를 들어, 다음은 모두 정상 프로그램 코딩입니다.

word = 'word'
sentence = "This is a sentence."
paragraph = """This is a paragraph. It is
made up of multiple lines and sentences."""

Last updated

Was this helpful?