python/기본
-
Stringpython/기본 2022. 4. 24. 22:10
# String 은 immutable print("I don't know") print('I don\'t know') print('say "I don\'t know"') # say "I don't know" print(r'C:\name\file') # C:\name\name # "-----------------" 이후에 공백 없이 line1 이 출력되게 print("--------------------") print("""\ line1 line2 line3\ """) print("--------------------") print('Hi.' * 3 + 'Mike.') # Hi.Hi.Hi.Mike. s = 'aaaaaaaaaaaaaa' \ 'bbbbbbbbbbbbbb' print(s) # aaaaaaaaa..