Python Basics - day 5

10- iteration What objects in Python support for loops (or traversal)? Answer: iteratable objects, or objects that implement the iterator protocol, support traversal or looping. (e.g. list, tuple, dictionary, file). The feature is the internal implementation of the \. Example: f = open('hello.txt', en ...

Posted by Skull on Sun, 26 Jan 2020 21:14:00 -0800

Light reptile + OCR part I

The first reptile in life (python3) Preface This blog is used to record the first gadget written by Xiaobai in python. It takes more than a day. In addition, I am still learning. This blog is my opinion and notes. There will be many mistakes and shortcomings. I hope you can give me some advice. This ...

Posted by johnnyk on Fri, 24 Jan 2020 02:34:11 -0800

Making a screen recording tool with Python

1, Write in front As a test, sometimes it is often necessary to record their own operation on the screen, so as to facilitate the follow-up development and positioning of students. In the past, screen to GIF was used to record the screen and make dynamic pictures. Occasionally, python can also be realized. Then hurry to learn. 2, Effect display ...

Posted by Monkee Of Evil on Fri, 17 Jan 2020 07:09:22 -0800

Knight program DAY02

01 while loop while infinite loop while True: # Dead cycle print('Incantations of the Great Mercy') print('Two tigers') print('Great prince') print('Pick me up please,you skilled driver!') while Structure of the cycle: ''' while condition: //Circulatory body ''' # How to termin ...

Posted by iamtheironman on Thu, 16 Jan 2020 03:38:19 -0800

Record the filling process of a multi-process print log using the Python logging library

Background: Project uses Python's own logging library to print logs The project is deployed on a Centos7 machine Project uses gunicorn multi-process deployment Process: 1. LOG Log Code Encapsulation: Use the logging library and set when='MIDNIGHT', split the log in days, the log of the previous day will be automatically added with the date of ...

Posted by bmcconkie on Mon, 06 Jan 2020 13:00:56 -0800

GoLand 2019.3 activate cracking tutorial (permanent)

Note: this tutorial patches, activation code collection and network, if there is infringement, please contact the author to delete! On November 28, 2019, JetBrains released Go's strongest editor, GoLand, March 2019. This update software consumes less CPU and faster performance, enhances support for Go Modules, adds a new set of quick fixes, and ...

Posted by angel_cowgirl on Wed, 18 Dec 2019 02:20:06 -0800

Python: simple banking system implementation

1. admin.py defines administrator information and main interface display #!/usr/bin/env python # coding:UTF-8 """ @version: python3.x @author:Cao Xin Jian @contact: 617349013@qq.com @software: PyCharm @file: admin.py @time: 2018/9/11 10:14 """ import time class Admin(): def __init__(self,name,passwd): self.name ...

Posted by jimmyt1988 on Sun, 15 Dec 2019 11:26:12 -0800

Interpret and process the beautifullreport report template

After the script using unittest framework is executed, an html report will be generated This report makes an html template in advance, writes the corresponding content to the template, and generates a final report. This report template will exist in the following path after passing the PIP install beautiful report: C: \ program files \ python37 ...

Posted by herreram on Sun, 08 Dec 2019 19:58:41 -0800

PyCharm 2019.3 Activate Crack Tutorial (Permanent)

2019.12.02 jetbrains released Python's best editor, PyCharm 2019.3.This major release mainly makes some additions to Jupyter notebooks, MongoDB, Python 3.8. And many of these features are only available in the Professional edition, so today we bring you the activation tutorial for PyCharm 2019.3! Note: Patches for this tutorial, activation code ...

Posted by dnienhaus on Sun, 08 Dec 2019 15:43:45 -0800

Some built-in functions of python

Built in function mind map: https://www.processon.com/mindmap/5c10ca52e4b0c2ee256ac034 Built-in function Anonymous function The unified name of anonymous function is: < lambda > Usage scenario: used with sorted, map and filter   fn = lambda a, b : a + b # Define a very simple function. Do not use complex functions lambda ret = fn(3, 5) p ...

Posted by jimbob on Thu, 05 Dec 2019 01:16:29 -0800