2017Spring 協同產品設計實習 (虎尾科大MDE)
  • About
  • Python
  • Archives

第6課 - While Loops, break, and continue 迴圈指令

Date Mon 31 July 2017 By 40423222 Tags notes / Lesson 6

參考資訊: 網站: https://automatetheboringstuff.com/chapter2/ 影片: https://www.youtube.com/watch?v=885qKiiKisI&feature=youtu.be


說明:

while (變數 符號 條件): 有迴圈(就像Arduino的for迴圈) 注意: 符合條件就會跳出迴圈(不符合條件才會執行)


while-variable + 1:



while-0 to 10-else:



while-error:



while-break:



while-not stop:



while-continue:


  • Recent Posts

    • 第16課 - type( ), mutable and Immutable, copy( ) 列表更多應用
    • 第15課 - index( ), append( ), insert( ), remove( ), sort( ) 用於列表的指令
    • 第14課 - forRange with Lists forRange與列表
    • 第13課 - Lists 列表
    • Python flowchart 目錄
  • Categories

    • Python
  • Tags

  • Links

    • Pelican
    • pelican-bootstrap3
    • pelican-plugins
    • Tipue search

© 2017 KMOL · Powered by pelican-bootstrap3, Pelican, Bootstrap

Back to top