a='123asdg'
print a\na\na
이거 왜안댐
탈출문자열쓸라면 어떻게해야됨??
찾아봐도 변수랑 같이 쓰인건 못찾겟어 ㅠㅠ
으앙 뭔소린지 모르겠다능 두부F가 어디가겠음
덧글 처음 써보는데... 여러 줄은 어떻게 씀?
일단, foo = 'hello'; print foo + '\n' + foo + '\n' + foo 이렇게 쓰거나, foo = 'hello'; print '%s\n%s\n%s\n' % (foo, foo, foo) 또는 foo = 'hello'; print '{0}\n{0}\n{0}'.format(foo) 이런 식으로 가능함
으앙 뭔소린지 모르겠다능 두부F가 어디가겠음
덧글 처음 써보는데... 여러 줄은 어떻게 씀?
일단, foo = 'hello'; print foo + '\n' + foo + '\n' + foo 이렇게 쓰거나, foo = 'hello'; print '%s\n%s\n%s\n' % (foo, foo, foo) 또는 foo = 'hello'; print '{0}\n{0}\n{0}'.format(foo) 이런 식으로 가능함