Python
[Python] 문자열 다루기
문자열 함수에 관한 표준 문서 웹사이트 print print("hello") #출력:hello print('hello') #출력:hello print("hello 'world'") #출력: hello 'world' print('hello "world"') #출력: hello "world" print("hello" + "world") #출력: helloworld print("hello","world") #출력: hello world print("hello" "world") #출력: helloworld 파이썬은 문자열을 ' ' 또는 " "로 감싸서 표현합니다. 이때 저 기호 자체를 문자열로 만들고싶다면 위 코드의 3,4번째같이 사용하면 됩니다. +를 이용하여 두 문자열을 이어붙일수 있습니다. ,를 사용해서 ..