파이썬 3 기초 강좌 두번째 시간, 파이썬을 "Tutorial" 따라 코딩해보자!
수행했던 내용을 그대로 갈무리 한거다... 그러면서 설명을 간단히 곁들여볼까 한다. 그냥 해보시라... 1. if 문... Python 3.1.3 (r313:86834, Nov 27 2010, 18:30:53) [MSC v.1500 32 bit (Intel)] on win32 Type "copyright", "credits" or "license()" for more information. >>> the_world_is_flat = 1 >>> if the_world_is_flat: print("Be careful not to fall off!") Be careful not to fall off! 위엣것을 설명하자면... (필요할지 모르겠지만) the_world_is_flat 에다가 1을 세팅하는 것이다...
프로그래밍/파이썬
2010. 12. 22. 07:40