Movatterモバイル変換


[0]ホーム

URL:


Skip to content
Search Gists
Sign in Sign up

Instantly share code, notes, and snippets.

View upsuper's full-sized avatar

Xidorn Quan upsuper

View GitHub Profile
@upsuper
upsuper /tree.md
CreatedApril 28, 2012 10:38— forked fromhrldcpr/tree.md
一行 Python 实现树

使用 Python 内置的defaultdict,我们可以很容易的定义一个树形数据结构:

deftree():returndefaultdict(tree)

就是这样!


[8]ページ先頭

©2009-2025 Movatter.jp