Opengist

Explore

  • All gists
  • Topics
  • Users
Give feedback on the new UI Powered by Opengist ⋅ 80ms

user:thomas gists created by user

title:mygist gists with given title

description:sync gists with given description

filename:myfile.txt gists having files with given name

extension:yml gists having files with given extension

language:go gists having files with given language

topic:homelab gists with given topic

all:systemctl search all fields

Login
d

dropdown

Recently created Least recently created Recently updated Least recently updated

timmy / Dash 下拉選單範例

Last active 6 hours ago dash data-visualization dropdown interactive-ui python web-application

這段 Python Dash 程式碼建立了一個 簡單的網頁應用,包含 下拉選單 (Dropdown),允許使用者選擇 Montréal、Tokyo 或 北京。

0 0 0 1
1 # -*- coding: utf-8 -*-
2
3 import dash
4 from dash import html
5 from dash import dcc
6
7 print(dcc.__version__)
8 external_stylesheets = ["https://codepen.io/chriddyp/pen/bWLwgP.css"]
9
10 app = dash.Dash(