if <Test Expression>:
<Block>
example)
def absolute (x):
if x<0 :
x = -x
return x
if <expr> :
<block>
else :
<block>
'Computers > Language python' 카테고리의 다른 글
multiple assignment (0) | 2012.03.14 |
---|---|
Loops / loop (0) | 2012.03.14 |
procedure (0) | 2012.03.14 |
url 링크 얻기 (0) | 2012.03.14 |
web crawler - extract link (0) | 2012.03.14 |