allbory
2011년 9월 28일 수요일
[Python] Control flow tool
1. if statement
if x<0:
x = 0
elif x== 0:
print 'zero'
elif x==1:
print 'Single'
else:
print 'More'
Don't forget indent!
댓글 없음:
댓글 쓰기
최근 게시물
이전 게시물
홈
피드 구독하기:
댓글 (Atom)
댓글 없음:
댓글 쓰기