The method and usage scenario of calling browser API in UI automation
The background is UI automation in a new project recently. I want to investigate how to interact with the browser API to obtain some additional information to help debug when the case fails. Later, it slowly extended to front-end performance test, weak network test and other scenarios. So record the results of the survey here. Mainly to solve t ...
Added by peuge on Fri, 14 Jan 2022 21:46:12 +0200
Python learning notes - classes
Python learning notes
Python learning notes (1) -- Fundamentals of language Python learning notes (2) -- functions Python learning notes (3) -- class
1, Class introduction
Three characteristics of object-oriented:
encapsulation
Ensure data security in objects
inherit
It ensures the scalability of objects
polymorphic
It ensures th ...
Added by 22Pixels on Fri, 14 Jan 2022 21:33:07 +0200
Write Python crawler from scratch --- 1.4 crawl the content of Baidu Post Bar of the big bang of life
After studying the previous chapters, we began to be reptiles in the real sense.
Climb target
The website we want to climb this time is: Baidu Post Bar. The specific post bar is the big bang of life.
Post bar address:
https://tieba.baidu.com/f?kw=%E7%94%9F%E6%B4%BB%E5%A4%A7%E7%88%86%E7%82%B8&ie=utf-8
Python version: 3.6.2 (Python ...
Added by heerajee on Fri, 14 Jan 2022 21:07:11 +0200
Django brief development process
1. New Django project
At the end of the Location is the Django project name, and select the virtual environment
In More Setting, you can select the template language and enter the APP name in Application name. If you do not enter the APP name, the new project does not contain APP by default. After the project is completed, you can use the co ...
Added by dsartain on Fri, 14 Jan 2022 20:18:06 +0200
Pytoch environment construction (WIN10)
)
catalogue
If you have any questions, please point them out! Reprint please indicate the source!
Anaconda installation
Here we use Tsinghua mirror source , select 64 bit or 32-bit to download (otherwise an error will be reported). The installation process defaults to the next step (the installation location can be selected by yourself) ...
Added by webtuto on Fri, 14 Jan 2022 18:04:42 +0200
Django study notes
Another week later, it's time to sum up....
After creating a new project and application, I can't understand the function of each file. I created a new project and application folder structure as follows:
C:\Users\Administrator\Documents\jiaoben\DJIANGO_TEST\second>django-admin startapp second_app
C:\Users\Administrator\Documents\jiaoben\ ...
Added by speedyslow on Fri, 14 Jan 2022 16:18:43 +0200
pycharm installation tutorial, super detailed
Before installing pycham, make sure that your computer is configured with python. If you don't download the installation, you can read my article - > > > python installation detailed tutorial
pycharm windows version download address: https://www.jetbrains.com/pycharm/download/#section=windows Download the community version (enough for ...
Added by Mr Tech on Fri, 14 Jan 2022 15:22:15 +0200
[Python] turtle painting cart
How do you draw a car?
catalogue
How do you draw a car?
design sketch
overall design
detailed design
Draw car code
Functions used inside
appendix
You can draw with python's built-in turtle library, which is very simple but powerful. import turtle is a very popular function library for drawing images in python. It moves the coordinate ...
Added by andrei.mita on Fri, 14 Jan 2022 06:22:29 +0200
Python basic exercises
Python basic exercises
1, Multiple choice questions
The following is not a Python feature (C) A. Easy to learn B. Open source free C. It belongs to low-level language D. High portability Python script files have a (B) extension A. .python B. .py C. .pt D. pg When you need to use special characters in a string, python uses (B). A. \ B. / C. ...
Added by MilesWilson on Fri, 14 Jan 2022 06:11:01 +0200
Python tips format string yield list parse Enumerate byte merge ternary operator sequence unpack with open file
python tips
Direct exchange of variables
a = 1
b = 2
a, b = b, a
print(f'a = {a}\nb = {b}')
a = 2
b = 1
format string
name = "Feng Niubi"
age = 18
Direct output
print("My name is" + name + ". My age is" + str(age) + ". ")
My name is Feng Niubi. My age is 18.
Use%
print("My name is%s. My age is%d. "%(name, age))
My name is Feng ...
Added by Solarpitch on Fri, 14 Jan 2022 06:05:16 +0200