- Daniel Arbuckle's Mastering Python
- Daniel Arbuckle
- 144字
- 2021-07-02 21:09:37
Making a Package
In the previous chapter, we saw how to install Python and third-party packages of code that we can use with Python. In this chapter, we'll see how packages are represented on the computer's filesystem. We'll take a look at how to add code modules inside the package, how to make those code modules interact with each other within the package, and how to access data from non-code files that are incorporated into our package.
By the end of this chapter, you'll have a pretty good idea about how to create your own packages of Python code. Packages will form the basis for programs and help you to make your code modular.
In this chapter, we will cover the following topics:
- Creating an empty package
- Adding modules to the package
- Accessing code from other modules
- Adding static data files to the package
推薦閱讀
- ExtGWT Rich Internet Application Cookbook
- Java異步編程實戰
- 體驗設計原理:行為、情感和細節
- SEO實戰密碼
- Web程序設計(第二版)
- Android Native Development Kit Cookbook
- Learning DHTMLX Suite UI
- Visual FoxPro程序設計習題集及實驗指導(第四版)
- Selenium Testing Tools Cookbook(Second Edition)
- Spring核心技術和案例實戰
- 軟件測試實用教程
- AutoCAD 2009實訓指導
- HTML+CSS+JavaScript網頁設計從入門到精通 (清華社"視頻大講堂"大系·網絡開發視頻大講堂)
- Sails.js Essentials
- Learning Concurrency in Python