mirror of
https://github.com/krahets/hello-algo.git
synced 2025-07-06 14:27:26 +08:00
refactor: Follow the PEP 585 Typing standard (#439)
* Follow the PEP 585 Typing standard * Update list.py
This commit is contained in:
@ -8,11 +8,10 @@ import sys, os.path as osp
|
||||
sys.path.append(osp.dirname(osp.dirname(osp.abspath(__file__))))
|
||||
from modules import *
|
||||
|
||||
|
||||
""" Driver Code """
|
||||
if __name__ == "__main__":
|
||||
""" 初始化哈希表 """
|
||||
mapp: Dict = {}
|
||||
mapp = dict[int, str]()
|
||||
|
||||
""" 添加操作 """
|
||||
# 在哈希表中添加键值对 (key, value)
|
||||
|
Reference in New Issue
Block a user