python 常用函数、变量

常用函数

  • id()
  • dir()
  • help()

os.linesep 系统换行符

  • os.getcwd 当前工作目录
# 获取当前文件路径
filePath = os.path.dirname(os.path.abspath(sys.argv[0]))

# 获取当前工作目录
pwd = os.getcwd()
posted @ 2018-02-05 22:46  kangeloo  阅读(110)  评论(0编辑  收藏  举报