Python原生禁用API列表
应用后端开发采用的是Python语言,但是有一些Python原生的API是禁用的。
- 以下是禁用的API列表:
分类 | API |
文件 | open |
file.closed | |
file.mode | |
file.name | |
file.softspace | |
file.close() | |
file.flush() | |
file.fileno() | |
file.isatty() | |
file.next() | |
file.read([size]) | |
file.readline([size]) | |
file.readlines([sizeint]) | |
file.seek(offset[, whence]) | |
file.tell() | |
file.truncate([size]) | |
file.write(str) | |
file.writelines(sequence) | |
目录 | os.access(path, mode) |
os.chdir(path) | |
os.chflags(path, flags) | |
os.chmod(path, mode) | |
os.chown(path, uid, gid) | |
os.chroot(path) | |
os.close(fd) | |
os.closerange(fd_low, fd_high) | |
os.dup(fd) | |
os.dup2(fd, fd2) | |
os.fchdir(fd) | |
os.fchmod(fd, mode) | |
os.fchown(fd, uid, gid) | |
os.fdatasync(fd) | |
os.fdopen(fd[, mode[, bufsize]]) | |
os.fpathconf(fd, name) | |
os.fstat(fd) | |
os.fstatvfs(fd) | |
os.fsync(fd) | |
os.ftruncate(fd, length) | |
os.getcwd() | |
os.getcwdu() | |
os.isatty(fd) | |
os.lchflags(path, flags) | |
os.lchmod(path, mode) | |
os.lchown(path, uid, gid) | |
os.link(src, dst) | |
os.listdir(path) | |
os.lseek(fd, pos, how) | |
os.lstat(path) | |
os.major(device) | |
os.makedev(major, minor) | |
os.makedirs(path[, mode]) | |
os.minor(device) | |
os.mkdir(path[, mode]) | |
os.mkfifo(path[, mode]) | |
os.mknod(filename[, mode=0600, device]) | |
os.open(file, flags[, mode]) | |
os.openpty() | |
os.pathconf(path, name) | |
os.pipe() | |
os.popen(command[, mode[, bufsize]]) | |
os.read(fd, n) | |
os.readlink(path) | |
os.remove(path) | |
os.removedirs(path) | |
os.rename(src, dst) | |
os.renames(old, new) | |
os.rmdir(path) | |
os.stat(path) | |
os.stat_float_times([newvalue]) | |
os.statvfs(path) | |
os.symlink(src, dst) | |
os.tcgetpgrp(fd) | |
os.tcsetpgrp(fd, pg) | |
os.tempnam([dir[, prefix]]) | |
os.tmpfile() | |
os.tmpnam() | |
os.ttyname(fd) | |
os.unlink(path) | |
os.utime(path, times) | |
os.walk(top[, topdown=True[, onerror=None[, followlinks=False]]]) | |
os.write(fd, str) | |
os.path 模块 | |
网络 | socket.bind() |
socket.listen() | |
socket.accept() | |
socket.connect() | |
socket.connect_ex() | |
socket.recv() | |
socket.send() | |
socket.sendall() | |
socket.recvfrom() | |
socket.sendto() | |
socket.close() | |
socket.getpeername() | |
socket.getsockname() | |
socket.setsockopt(level,optname,value) | |
socket.getsockopt(level,optname[.buflen]) | |
socket.settimeout(timeout) | |
socket.gettimeout() | |
socket.fileno() | |
socket.setblocking(flag) | |
socket.makefile() |