📜  sys.path.append python 代码示例

📅  最后修改于: 2022-03-11 14:45:27.084000             🧑  作者: Mango

代码示例1
sys.path is a built-in variable within the sys module. 
It contains a list of directories that the interpreter will search 
in for the required module.

APPENDING PATH- append() is a built-in function of sys module that can be 
used with path variable to add a specific path for interpreter to search. 
The following example shows how this can be done.

import sys
sys.path.append('C:/Users/Vanshi/Desktop')