Skip to content

导入机制 ​

python
import importlib

# 动态导入
module = importlib.import_module('math')
print(module.sqrt(16))  # 4.0

练习:答案

用心记录每一步成长