在Python中,可以定義條件語句,如if 語句。考慮下麵這個應用程序: #!/usr/bin/python x = 3 if x < 10: print 'x smaller than 10' else: print ... 不等於. == 等於.
確定! 回上一頁