Deep learning notes (based on pytorch) - Numpy Foundation

Array deformation reshape Definition: change the vector arr dimension again without modifying the vector itself. That is, it does not affect the content under the original address, creates a copy result and outputs it. import numpy as np arr = np.arange(10) print(arr) # Transform the vector arrr dimension into 2 rows and 5 columns print ...

Posted on Wed, 01 Dec 2021 08:33:17 -0500 by dhvani

Python series functions

OS: Windows Python: 3.8.8 IDE: Sublime Text 3 Parameters of function Location parameters and default parameters Define a function, which contains two parameters. param1 is the location parameter that must be provided when calling the function. param2 is the default parameter. The default value is None (of course, it can be set to ot ...

Posted on Wed, 01 Dec 2021 06:28:21 -0500 by phpfreak101

In order to get you started with Python in 10 minutes, I spent 5 hours writing 7 cases and this article!!!

Recently, I systematically studied the basic knowledge of python once, and thought of whether there was a way to master knowledge quickly. The general normal logic is to practice cases while reading basic knowledge, which is a process from thick to thin. But now the pace is so fast, especially Internet companies. Excluding the time to watch ch ...

Posted on Wed, 01 Dec 2021 04:34:58 -0500 by Imothep

Getting started must see: using Python to realize multitasking process

Thread, process comparison and process examples in Python 1, Process introduction Process: the program being executed, which is composed of program, data and process control blocks. It is the program being executed. It is an execution process of the program and the basic unit of resource scheduling. Program: the code that is not executed ...

Posted on Wed, 01 Dec 2021 00:32:32 -0500 by thinkgfx

Initial experience of using pyautogui

1. Write in front As a student majoring in automation, the word automation is related to the automatic operation related to the control of the production line by default. Due to the lack of field visits to automatic chemical plants, the feeling of "automation" only stays in books. When I first started python, I heard about the a ...

Posted on Tue, 30 Nov 2021 22:43:29 -0500 by pythian

python Programming (from introduction to practice) Chapter 1-2

Chapter 1 setting up programming environment Installation environment All Python exercises in this article are applicable to the python 3.6 environment. If the execution fails, you can use the python 3.6 environment. A simple python program, hello_world.py #cat hello_world.py print("Hello Python world!") Run hello_world.py #python hello_ ...

Posted on Tue, 30 Nov 2021 22:23:10 -0500 by mobilekid

2021SC@SDUSC -Shan Dazhiyun Source Code Analysis

Implementatin of a searpc transport based on named pipe Preface After previous analysis, the basic principles of searpc server, client and their connection have been analyzed. Next, the application of named pipe-based searpc transport in searpc-name-pipe-transport file is analyzed. named-pipe A pipe is an object with two ends. One process w ...

Posted on Tue, 30 Nov 2021 21:28:26 -0500 by mpb001

Da Shu Xie python training camp punch in notes Task03

1, Summary of learning points ① python standard exception summary ② python standard warning summary ③ try exception statement ④ try exception finally statement ⑤ try exception else statement ⑥ raise statement 2, Learning content 1.Python standard exception summary There are hierarchical relationships within the exception system. Some rela ...

Posted on Tue, 30 Nov 2021 20:45:35 -0500 by baby_g

08 how to make a table of data crawled from the Internet

1, Background Get a data from the Internet, as shown in the figure: How can I make an excel sheet? The final result is: 2, Operation method 1. Because the final table is generated, the csv module is used here. I don't know whether there is a response module of xlxs, and I haven't used it. This csv module is python's own package, so you ...

Posted on Tue, 30 Nov 2021 20:43:46 -0500 by desoto0311

The test platform series (83) preconditions support Redis statements

Hello ~ I'm Milo! I'm building an open source interface testing platform from 0 to 1, and I'm also writing a complete set of corresponding tutorials. I hope you can support me. Welcome to my official account test development pit, get the latest article tutorial! review In the last section, we played a wild game and solved the problem of repeat ...

Posted on Tue, 30 Nov 2021 15:46:26 -0500 by imartin