類似if語句的語法,如果你的while循環體中只有一條語句,你可以將該語句與while寫在同一行中, 如下所示: #!/usr/bin/python flag = 1 while (flag): print 'Given ...
確定! 回上一頁