如何学习day_06中的Python模块01内容?

2026-05-21 14:071阅读0评论SEO教程
  • 内容介绍
  • 文章标签
  • 相关推荐

本文共计114个文字,预计阅读时间需要1分钟。

如何学习day_06中的Python模块01内容?

pythonimport os豆云谦 模块内置import s3

__author__ = 'Administrator'

import os

'''

豆云谦

模块内置

'''

import s3

#print(vars(s3))#可以查看这个模块内有多少变量

print(__doc__)#显示文件的注释

print(__file__)#当前文件所在的路径

print(os.path.abspath(__file__))

print(os.path.dirname(__file__))

#加入项目的路径

print(os.path.dirname(os.path.dirname(os.path.abspath(__file__))))

如何学习day_06中的Python模块01内容?

本文共计114个文字,预计阅读时间需要1分钟。

如何学习day_06中的Python模块01内容?

pythonimport os豆云谦 模块内置import s3

__author__ = 'Administrator'

import os

'''

豆云谦

模块内置

'''

import s3

#print(vars(s3))#可以查看这个模块内有多少变量

print(__doc__)#显示文件的注释

print(__file__)#当前文件所在的路径

print(os.path.abspath(__file__))

print(os.path.dirname(__file__))

#加入项目的路径

print(os.path.dirname(os.path.dirname(os.path.abspath(__file__))))

如何学习day_06中的Python模块01内容?