↓ 跳过正文
Starmap & Dust

文章 · Posts

星图与尘埃的全部文章:技术实践、Hugo 建站、自媒体与生活成长。

129 篇文章 · 持续更新中

Pyqt5指南

Pyqt5指南

·1323 字·3 分钟
使用 python 我们也可以开发桌面应用(在 pc 上运行的软件,pyqt5 好像还不支持手机 app)平时做做小工具还是挺方便的。这次我们一起学习一下 pyqt5 环境安装 # pip install pyqt5 pip install pyqt5-tools python 版本不要过高, 需要适配 pyqt5 ,像 3.8,3.9 是可以的,高版本可能会出现适配问题
Linux系统教程

Linux系统教程

·5919 字·12 分钟
文章目的 # 希望 linux 初学者可以通过本章内容,快速入门 linux。文章引用了菜鸟教程的优秀文章,以及网络上的一些图片
Python基础 类2

Python基础 类2

·2116 字·5 分钟
这次我们补充说明 类的关系 这一非常重要的概念 类之间的关系 # has关系: 使用依赖 # 依赖:当B类 has A类时,在 B类中 使用 A类的对象
Python基础 类

Python基础 类

·1463 字·3 分钟
一:概念阐述 # 面向对象 # 因为提高了代码的复用性,开发效率高,而且便于扩展迭代,所以成为了主流的开发思想。其中的核心概念就是类,在面向对象的思想中,可以用类来抽象一切的事物
Python基础 虚拟环境管理 Anaconda

Python基础 虚拟环境管理 Anaconda

·1460 字·3 分钟
python虚拟环境的必要性 # 背景:在我们实际开发的python项目,因为常常依赖第三方库,并且第三方库之间的版本也需要相互兼容,程序才可以正常执行。
Python基础 编程章法2

Python基础 编程章法2

·787 字·2 分钟
今天继续分享一下自己的近期心得: python之禅 # Python 3.10.11 | packaged by Anaconda, Inc. | (main, Apr 20 2023, 18:56:50) [MSC v.1916 64 bit (AMD64)] on win32 Type "help", "copyright", "credits" or "license" for more information. >>> import this The Zen of Python, by Tim Peters Beautiful is better than ugly. Explicit is better than implicit. Simple is better than complex. Complex is better than complicated. Flat is better than nested. Sparse is better than dense. Readability counts. Special cases aren't special enough to break the rules. Although practicality beats purity. Errors should never pass silently. Unless explicitly silenced. In the face of ambiguity, refuse the temptation to guess. There should be one-- and preferably only one --obvious way to do it. Although that way may not be obvious at first unless you're Dutch. Now is better than never. Although never is often better than *right* now. If the implementation is hard to explain, it's a bad idea. If the implementation is easy to explain, it may be a good idea. Namespaces are one honking great idea -- let's do more of those! >>> 其中有两句很有启发: