python中的if、while、for

1、python的縮進 2、if 、 while、for語句 個人感覺三個語句當中if最容易理解,舉個if的例子,注意冒號,注意縮進: name = 'aaa' if name == 'aaa': print 'this is aaa' elif name== 'bbb': print 'this is bbb' else: print 'others' while
相關文章
相關標籤/搜索