Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
如何将 a 转换string为path对象?或者我怎么能path在 python 中制作对象?例如:我需要path在这些中使用对象: os.listdir(path) os.chroot(path)
string
path
os.listdir(path)
os.chroot(path)
这两个函数都采用字符串参数。“路径”只是参数的名称。