Skip to content

Instantly share code, notes, and snippets.

View mdecycu's full-sized avatar

mdecycu At cycu dot org mdecycu

View GitHub Profile
@mdecycu
mdecycu / 1agrp_2022
Created March 16, 2022 18:42 — forked from mdecourse/1agrp_2022
Brython examples
# 2a w3 grouping program, 與 2b 處理架構相同
from browser import html
from browser import document
import random
brython_div = document["brython_div"]
# 根據 href 與 content 將 html 元件中的 anchor 插入頁面
def makeLink(href, content):
brython_div <= html.A(content, href=href)