Evan's blog
Search
Search
Dark mode
Light mode
Reader mode
Explorer
Home
❯
Notes
❯
Computer Science
❯
python 泛型
python 泛型
Jul 12, 2026
1 min read
Python
def
get_first[T](items: list[T])
->
T:
return
items[
0
]
Graph View