python learning notes 1

This article is mainly aimed at sorting out some knowledge points of learning python in these two days 1.os related parameter learning Use of common sub functions of os Library os.sep: replaces OS specific path delimiters os.name: indicates the working platform you are using. For example, it is' nt 'for Windows and' posix 'for Linux/Unix us ...

Posted by JD^ on Sat, 11 Sep 2021 11:54:02 -0700

Learning and summary of string, list, tuple and dictionary methods in Python

1. String 1.1 string basis         In Python, a string is a combination of a string of characters. It is an immutable and finite sequence of characters, including visible characters, invisible characters (such as space characters) and escape characters. Python provides a large number of methods to manipulate strings throug ...

Posted by thors1982 on Fri, 10 Sep 2021 00:57:34 -0700

Talk about how Jmeter executes Python scripts concurrently

1. Preface Hello, I'm test Jun! Recently, a small partner left a message to me in the background, saying that he wrote an Api interface for uploading large files with Django. Now he wants to test the stability of interface concurrency locally and ask me if I have a good scheme This article takes file upload as an example to talk about the ...

Posted by Cheers on Thu, 09 Sep 2021 20:13:04 -0700

Dictionary collection public operation

Circular traversal of dictionary key traversing dictionary dict = {"k1": "v1", "k2": "v2", "k3": "v3"} keys = dict.keys() print(keys) for key in keys: print(key) Note: key refers to the key of the dictionary, for example: 'k1', 'k2', 'k3' Traverse the value of the dictionary dict = {"k1": "v1", "k2": "v2", "k3": "v3"} values = dic ...

Posted by somo on Thu, 09 Sep 2021 12:23:20 -0700

python6 - Functions (parameters, anonymous functions, recursive functions)

1. Overview of Functions If you need a block of code several times when developing a program, in order to improve writing efficiency and code reuse, you organize code blocks with independent functions into a small module, which is a function. We've been exposed to a number of functions, such as input(), print(), range(), len(), and so on, ...

Posted by kenchucky on Tue, 07 Sep 2021 17:13:49 -0700

python learning experience: methods, parameters, decorators

1, Definition of method Methods are organized, reusable code snippets used to implement a single, or associated function. This method can improve the modularity of application and the reuse rate of code. Python provides many built-in methods, such as print(). You can also create your own methods, which are called user-defined methods. 2, ...

Posted by zeh on Sun, 05 Sep 2021 17:48:53 -0700

Getting started with tkinter -- list box, Scrollbar, Scale

tkinter getting started (4) -- list box, scroll bar, Scale 1. List box, for multiple options 2. When there are many list boxes, the solution 3. scale component enables users to select a certain range of data 1. List box, for multiple options import tkinter as tk root = tk.Tk()#Generate top windo ...

Posted by xtian on Fri, 26 Jun 2020 20:25:19 -0700

Face recognition based on opencv+python+pycharm

Face recognition based on opencv+python+pycharm catalog preface preparation in advance Face detection Sample collection Sample training epilogue preface I am a sophomore in the University, programming rookie. Recently, I did the final course design, and the topic I chose was face recognition. W ...

Posted by meritre on Fri, 19 Jun 2020 04:31:25 -0700

In order to make my girlfriend happy, I used Python to grab all the major recipe information (see how I did it)

preface: In the holiday, often want to try their own cooking, kitchen this website is a good choice. Under the kitchen is one of the necessary sites, mainly provides a variety of food practices and cooking skills, including many kinds. Today, I will teach you to climb and take down the recipes in th ...

Posted by Roddy87 on Tue, 16 Jun 2020 22:03:11 -0700

What's the beauty value of your favorite female anchor? Today, I'll take you to test the beauty value of the live female anchor

preface With the rise of live broadcasting, the career of anchor has gradually come into people's vision. Now each platform has the title of "master Huadan", "first brother", "first sister", etc. In fact, popularity is one aspect, but beauty is the hard power. Next, I'll take you to the beauty test score of the anc ...

Posted by yoda69 on Sun, 31 May 2020 08:29:18 -0700