python basics

python simple student management system

Reference case source: Introduction to Python Quick Programming (Dark Horse Programmer), which is somewhat different from the original case . The functions of the student management system include: add, delete, modify, display, save, and exit the system. Each function corresponds to the serial number of this response. The specific steps are selected by the user …

python simple student management system Read More »

python object oriented

Basic knowledge Definition of a class A class consists of 3 parts: class name, attributes, methods; basic syntax: class class name: class properties class method create object objectname = classname() Example: cat=Cat() Class properties and methods can be accessed through cat. To add properties to a class, use the following methods: objectname.new propertyname=value Example: cat.color= …

python object oriented Read More »

Python Dictionary Also I don’t know advanced gameplay

Hello everyone, my name is Ding Xiaojie! I often encounter various operations on Python dictionaries. Today, I will show the optimized implementation of some common operations in this article. If you have mastered them, then congratulations, you have surpassed more than 90% of Python coder. Generate dictionary from sequence We convert the sequence below to …

Python Dictionary Also I don’t know advanced gameplay Read More »

Pyinstaller+Pipenv package Python files, it’s not too fragrant~

Hello everyone, I am Ding Xiaojie. I believe that everyone has tried to package Python files and send them to other users who do not have a Python environment installed. However, usually, the exe files generated by packaging are very large, and the reason for this situation occurs. That is, packaging does not only package …

Pyinstaller+Pipenv package Python files, it’s not too fragrant~ Read More »

Python tests a campus hot water service app to achieve automatic free water (for reference only)

foreword This article is just a test of a campus hot water service app. In fact, I did not do anything bad or disseminate related technologies. The sensitive parts of the following content of the article will be coded, and the relevant manufacturers are already in the process of fixing bugs. it is good. The …

Python tests a campus hot water service app to achieve automatic free water (for reference only) Read More »

Python basic text control file encoding format Use python to read and write files Commonly used file opening methods

Encoding format: Common character encoding format Python’s interpreter uses Unicode ( [memory] ) .py files are stored on disk using UTF-8 (external memory) The principle of reading and writing files: 1. The reading and writing of files is commonly known as “IO operation” I refers to input input, O refers to output output, so IO …

Python basic text control file encoding format Use python to read and write files Commonly used file opening methods Read More »

Listen to my advice and use it directly if we don’t know it – python homework collection (in irregular updates…)

Hey, I came to Liao again. There are some treasures who asked me for codes, so I will send some more today. Ah yes, let’s talk about it: if you have any python-related errors and answers that you can’t answer, or source code/module installation/ ~women’s clothing bosses are proficient~ in skills, you can come here: …

Listen to my advice and use it directly if we don’t know it – python homework collection (in irregular updates…) Read More »