Python exercises (continuously updated)
Example 001: digital combination
Title: there are four numbers: 1, 2, 3 and 4. How many three digits that are different from each other and have no duplicate numbers? How much is each?
The program analysis traverses all possibilities. Please shave off the duplicates.
num = 0
for a in range(1, 5):
for b in range(1, 5):
for c in ra ...
Posted by Infinitus 8 on Sun, 28 Nov 2021 17:21:22 -0800
[deep learning] Wu Enda deep learning - Course1 neural network and deep learning - week 2 basic programming of neural network
Learning links: [Chinese] [Wu Enda's after class programming assignment] Course 1 - neural network and deep learning - assignment for the second week
○ operation objectives
What we need to do is build a simple neural network that can recognize cats
1, Use environment
Here, Anaconda is used for environment configuration and PyCharm is u ...
Posted by J@ystick_FI on Thu, 25 Nov 2021 11:38:13 -0800
Original | PYQT5 | programming experience | pit climbing | sharing | 4|python advanced operation: multiple controls use the same function entry
When we program PYQT5, when the interface design is completed, we usually need to correspond the control to the corresponding function events in the code one by one. If there are few controls, it may be nothing. However, with the gradual increase of requirements and functions of subsequent softwa ...
Posted by mwl707 on Mon, 22 Nov 2021 18:49:10 -0800
Read the python Chatbot tutorial code step by step
Readme
I'm a programming Xiaobai. Although the registration time is long, I'm not engaged in coding. I began to teach myself Python in order to learn AI. I usually knock the code according to the book, but I don't have a deep understanding. Now I want to study chatbot and find that my coding level needs to be strengthened, so I open this s ...
Posted by Lefu on Sun, 21 Nov 2021 02:40:13 -0800
Code examples python syntax: file reading and writing
in use python When programming, we often encounter the operation of reading and writing files. Many children's shoes are perplexed by various modes of reading and writing files (such as reading, writing, adding, etc.) and unclear open,read,readline,readlines,write And other methods. File read / write yes python Basic operation, this paper brie ...
Posted by ashbai on Tue, 09 Nov 2021 23:53:07 -0800
[basis of artificial intelligence] realizing fuzzy reasoning system of washing machine in python
Operating environment
Pycharm + Anaconda3
A set of fuzzy sets of sludge and oil parameters and the corresponding washing time reasoning results are known.
Now a group of fuzzy sets of sludge and grease are given, fuzzy reasoning is carried out, and the fuzzy set of washing time is deduced.
Finally, the fuzzy decision is made to select the ...
Posted by seidel on Sat, 30 Oct 2021 11:13:23 -0700
linux install anaconda3 create virtual environment tensorflow install pycharm remote connection
1. anaconda3 package download
1.1 windows Download
First download through windows, and then transfer to linux server through winscp and other software
Official website address: https://www.anaconda.com/products/individual
Tsinghua mirror address: https://mirrors.tuna.tsinghua.edu.cn/anaconda/archive/
Anaconda corresponds to python vers ...
Posted by rossmurphy on Fri, 29 Oct 2021 01:42:59 -0700
Python+opencv module to achieve emoticon package into mosaic pictures, image processing road
Preface
Today, using the expression packs that you downloaded yesterday, you can use them to put together a wave of mosaic pictures. That's good. Don't talk too much. Let's start happily!
development tool
Python version: 3.6.4
Related modules:
opencv-python module;
numpy module;
tqdm module;
argparse module;
And some of the modules tha ...
Posted by sogno on Thu, 21 Oct 2021 11:26:10 -0700
Basic learning of python 4
This paper is the notes and corresponding practice application in the process of self-learning python , I hope it can help you, and I also hope you can communicate and study together. If it is helpful to your study, remember to praise and pay attention. The Xiaobian will update an article every week.
catalogue
1, Abnormal
1. Catch exc ...
Posted by marsooka on Tue, 19 Oct 2021 11:09:05 -0700
Summary of Python basic syntax knowledge points
Python learning notes
1. The first phthon program
print("Hello World!");
2. Basic grammar knowledge
2.1 notes
# Single line note content
"""
Multiline comment content
"""
print("Two representations of annotations");
2.2 prompt information in phcharm
Gray wavy line: indicates irregular writingGreen wavy line: indicates that there may ...
Posted by lilywong on Mon, 18 Oct 2021 15:02:38 -0700