立即学习:https://edu.csdn.net/course/play/26676/402876?utm_source=blogtoedu
1。了解模块和包的结构
2.。发布包的方法
模块:。py文件
pthon 搜索路径
class Book:
lang = 'learn python with laoqi'
def __init__(self,author):
self.author = author
def get_name(self):
return self.author
def new_book():
return '数据准备和特征工程'
python = Book('laoqi')
author_name = pthon.get_name()
print(author_name)
published = new_book()
print(published)
相关资源:microbit 2.0.2 Linux 离线编辑器 积木编程 开发工具