小编Ash*_*hay的帖子

AttributeError: 模块“os”没有属性“chroot”

下面是我在 spyder 中运行的非常基本的代码,python 很卡,我做错了什么?

import csv,os,sys
path = os.getcwd()
print (path)
os.chroot(path)
Run Code Online (Sandbox Code Playgroud)

我收到以下错误消息:

  os.chroot(path)

AttributeError: module 'os' has no attribute 'chroot'
Run Code Online (Sandbox Code Playgroud)

python chroot attributeerror python-3.x

5
推荐指数
1
解决办法
7186
查看次数

标签 统计

attributeerror ×1

chroot ×1

python ×1

python-3.x ×1