목록string (1)
배워서? 남줘라!
1. 숫자 자료형 #a^b a=3 b=2 print(a**b) #나눗셈 나머지 a=5 b=3 print(a%b) #나눗셈 몫 a=5 b=3 print(a//b) 2. 문자열 자료형 1 #문장 만들기 print("how's the weather?") print('how\'s the weather?') #escape code print("""how's the weather?""") how's the weather? how's the weather? how's the weather? Escape code (미리 정의된 문자조합) \n 줄 바꾸기 \t Tab \” “표현 \’ ‘표현 \\ \표현 2 #escape code를 이용해 줄바꾸기 표현 print("how's the weather?\nTell me.")..
Translational Healthcare/Python
2022. 10. 6. 16:26