This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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) |