
홍준이가 알려준 브이로그 사이트이다. 솔직히 하다가 중간에 귀찮아서 안할 확률이 90프로 이상인데 그래도 하는 데까지는 해보고 싶다. 화이팅~
Print() : 괄호 안의 값을 출력해주는 기능
ex)
입력 값
print('hello world')
print(1)
print('6.25')
print(0b10)
print(0o10)
print(0x10)
결과 값
hello world
1
6.25
2 (2진법을 의미한다.)
8 (8진법을 의미한다.)
16 (16진법을 의미한다.)
이스케이프 문자
- \ : 결과 값 중간에 ' 가 있을 경우 출력해야 되는 값을 구분하기 위해 사용 된다.
- \t : tap 만큼의 거리를 이동시킨다.
- \n : 한칸 밑에 결과 값을 출력 시킨다.
- \ (2번 사용) : \이 출력된다.
ex)
입력 값
print("Mother's Birthday")
print('Mother\'s Birthday')
print('Mother\'s \tBirthday')
print('Mother\'s \nBirthday')
print('\\')
print('1\t2')
print('12\t2')
결과 값
Mother's Birthday
Mother's Birthday
Mother's Birthday
Mother's
Birthday
\
1 2
12 2
1. ctrl + s 저장
2. ctrl + f5 실행
3. ctrl + a 전체 지정
4. ctrl + z 되돌리기
5. ctrl + y 앞으로가기