티스토리 뷰
### Hello World print("*** Hello world") print("hello world") ### 연산자 print("\n*** 연산자") print(8 * 3.57) print(5 + 30 * 20) print((5 + 30) * 20) print(((5 + 30) * 20) / 10) ### 변수 print("\n*** 변수") fred = 100 print(fred) fred = 200 john = fred print(john) ### 문자열 print("\n*** 문자열") fred = "Why do gorillas have big nostrils? Big fingers!!" print(fred) fred = '''\nHow do dinosaurs pay their bills? With tyrannosaurus checks!''' print(fred) # 문자열에 값을 포함하기 %s myscore = 1000 message = 'I scored %s points' print("\n" + message % myscore) joke_text = '%s : a devide for finding furniture in the dart' bodypart1 = 'Knee' bodypart2 = 'Shin' print("\n" + joke_text % bodypart1) print(joke_text % bodypart2) nums = 'What did the number %s say to the number %s? Nice belt!!' print("\n" + nums % (0, 8)) # 문자열 곱하기 print("\n" + 10 * 'a') spaces = ' ' * 25; print("\n" + '%s 12 Butts Wynd' % spaces)
공지사항
최근에 올라온 글
최근에 달린 댓글
- Total
- Today
- Yesterday
링크
TAG
- 충주대원고등학교
- 초대장
- 충남대
- 함성
- 한국은행 통화정책 경시대회
- 충남대학교 경제학과
- 경제학 홍성표
- 경제학과 홍성표
- 검색량
- 아동 학대
- 대전
- 홍성표
- 티스토리 초대권
- 티스토리 초대장
- 양구
- 티스토리 초대
- 키워드
- 티스토리
- wwe
- 충주충일중학교
- 학점 계산기
- Presentation Ice Breaker
- 충주
- 충남대학교
- 충남대학교 경제학과 30주년 기념
- 괴산
- 네이버
- 홍성표 교수
- 충남대 홍성표
- 한국천문연구원
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | |||
5 | 6 | 7 | 8 | 9 | 10 | 11 |
12 | 13 | 14 | 15 | 16 | 17 | 18 |
19 | 20 | 21 | 22 | 23 | 24 | 25 |
26 | 27 | 28 | 29 | 30 | 31 |
글 보관함