41223125 cp2023

  • Home
    • SMap
    • reveal
    • blog
  • about
  • w2-w4
    • ipv4
    • ipv6
    • INFO
  • w5
  • w6
    • 美國國旗
    • 中國國旗
    • 日本國旗
    • 英國國旗
    • 韓國國旗
  • w7
    • gd
    • chinese
    • korea
  • w9
  • w13
  • w14
  • w15
    • A1
    • A2
  • w16
  • 寒假
  • file
  • brython
file << Previous

brython

https://en.wikipedia.org/wiki/Python_(程式語言)

例子:

https://gist.github.com/mdecycu/d9082d678096bd58378d6afe2c7fa05d

https://www.geeksforgeeks.org/python-programming-examples/

https://www.programiz.com/python-programming/examples

https://www.freecodecamp.org/news/python-code-examples-sample-script-coding-tutorial-for-beginners/

Python教學:

https://docs.python.org/3/tutorial/

Python的平衡介紹

縮排(Python採用4個Spaces縮排,以介面執行範圍)

變數(Python 關鍵字)

註(#單行註解、三單標註或三雙標註標註多行註解)

數(整數 int(), 浮點數 float())

字符串(字串)

print (Python 內建函數, print()函數式)

Python是控制流程工具

為了

如果

範圍

開放

讀

清單

元組

字典

功能

嘗試...除了

休息時間

曾經

類別

此頁面示範如何在同一頁面下加入多個線上Ace編輯器與執行按鈕(practice_html.txt動態頁面超檔案)。

Practice_html.txt動態頁面超檔案應該可以在啟動 Brython 時,設定分割 .py 檔案放入 downloads/py 目錄中引用。

也所有即將對應的 html 也使用 Brython 產生,然後編寫為類別後,在範例匯入時交叉實例引用。

<!-- 啟動 Brython -->
<腳本>
視窗.onload=函數(){
brython({debug:1, pythonpath:['./../cmsimde/static/','./../downloads/py/']});
}
</> 腳本

從1累加到100:

將 iterable 與 iterator相關說明,利用 Brython 與 Ace Editor 整理頁面。


從1累加到100第2部分:



file << Previous

Copyright © All rights reserved | This template is made with by Colorlib