摘要:
命名空间的编写 创建命名空间 命名空间的命名规则 命名空间名必须以 + 开头,例如 +mypackage 。 命名空间不能包含空格或特殊字符。 命名空间中的函数或类文件名必须与函数名或类名一致。 目录结构 /path/to/mypackage/ ├── +mypackage/ │ ├── myfun 阅读全文
posted @ 2025-01-20 09:28
ReRound
阅读(95)
评论(0)
推荐(0)
摘要:
动态添加路径 import sys # 添加当前工作目录到 Python 的路径中 current_dir = os.getcwd() if current_dir not in sys.path: sys.path.append(current_dir) 阅读全文
posted @ 2025-01-20 09:27
ReRound
阅读(23)
评论(0)
推荐(0)

浙公网安备 33010602011771号