- 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
推薦閱讀
- 數(shù)據庫原理及應用(Access版)第3版
- Microsoft Application Virtualization Cookbook
- INSTANT FreeMarker Starter
- 新編Premiere Pro CC從入門到精通
- Learn WebAssembly
- Visual FoxPro程序設計習題集及實驗指導(第四版)
- Learning OpenCV 3 Computer Vision with Python(Second Edition)
- RocketMQ實戰(zhàn)與原理解析
- Python商務數(shù)據分析(微課版)
- SSH框架企業(yè)級應用實戰(zhàn)
- Python Machine Learning Cookbook
- 3D Printing Designs:Octopus Pencil Holder
- 軟件測試技術
- JavaScript Unit Testing
- 趣學數(shù)據結構