[basic Python tutorial] program flow control statements in Python

preface This blog will talk about the flow control statements in Python language. In high school, we have learned program flow problems in mathematics. To achieve a goal, we often need to go step by step from the beginning, sometimes in sequence, sometimes in choice, and sometimes in cycle. Circulation and selection control the whole pro ...

Added by Jeff4507 on Wed, 23 Feb 2022 16:25:29 +0200

23 Summary - dictionary, assignment

2.23 Summary - dictionaries, assignments 1. Cognitive Dictionary (dict) Is a container data type; Take {} as the flag of the container, in which multiple key value pairs are separated by commas: {key 1: value 1, key 2: value 2, key 3: value 3,...} Key value pair: key value The dictionary is changeable (support addition, deletion and modific ...

Added by magie on Wed, 23 Feb 2022 15:25:40 +0200

Traveling salesman problem (TSP) like code

Definition from Wikipedia The travelling salesman problem (also called the travelling salesperson problem or TSP) asks the following question: "Given a list of cities and the distances between each pair of cities, what is the shortest possible route that visits each city exactly once and returns to the origin city?" Recently, in order to ...

Added by android6011 on Wed, 23 Feb 2022 14:02:53 +0200

Graphical python | time and date processing

Author: Han Xinzi@ShowMeAITutorial address: http://www.showmeai.tech/tuto...Article address: http://www.showmeai.tech/article-detail/90Notice: All Rights Reserved. Please contact the platform and the author for reprint and indicate the sourcePython date and timeIn the development process of python, we often have to deal with time type data. Pyt ...

Added by ttmt on Wed, 23 Feb 2022 13:08:35 +0200

Figure python | error and exception handling

Author: Han Xinzi@ShowMeAITutorial address: http://www.showmeai.tech/tuto...Article address: http://www.showmeai.tech/article-detail/87Notice: All Rights Reserved. Please contact the platform and the author for reprint and indicate the source1. Python 3 errors and exceptionsIn the actual programming process, we often see some error messages, an ...

Added by jimmyhumbled on Wed, 23 Feb 2022 11:06:36 +0200

Graphic python | file and directory operation

Author: Han Xinzi@ShowMeAITutorial address: http://www.showmeai.tech/tuto...Article address: http://www.showmeai.tech/article-detail/86Notice: All Rights Reserved. Please contact the platform and the author for reprint and indicate the source1.Python file directory operation and OS moduleIn our actual development, we often need to read, travers ...

Added by michalurban on Wed, 23 Feb 2022 10:48:33 +0200

Python foundation -- variable and variable, conditional, in, is, process control if

Today's test 1. Simply describe the storage of a variable x=10 in the heap area of the stack area in memory. Stack area: storage is the corresponding relationship between the variable name and the memory address, so it can be simply understood as: variable name is stored in the memory address heap area: it stores the variable value Emphasi ...

Added by thirdeye on Wed, 23 Feb 2022 10:28:59 +0200

Graphical python | module

Author: Han Xinzi@ShowMeAITutorial address: http://www.showmeai.tech/tuto...Article address: http://www.showmeai.tech/article-detail/84Notice: All Rights Reserved. Please contact the platform and the author for reprint and indicate the source1.Python moduleIn the process of program development, the file code is getting longer and longer, and th ...

Added by writer on Wed, 23 Feb 2022 09:46:15 +0200

Graphical python | data structure

Author: Han Xinzi@ShowMeAITutorial address: http://www.showmeai.tech/tuto...Article address: http://www.showmeai.tech/article-detail/83Notice: All Rights Reserved. Please contact the platform and the author for reprint and indicate the sourcePython 3 data structureThere are a large number of data structures and containers in Python for programm ...

Added by sakaveli on Wed, 23 Feb 2022 09:24:37 +0200

Microsoft automated test tool Playwright Quick Start Guide

Playwright is a new generation released by Microsoft in early 2020 automated testing Compared with Selenium, which is the most commonly used tool at present, it can automatically execute the automation operations of mainstream browsers such as Chromium, Firefox and WebKit with only one API. As a pure automation tool for Python language, it can ...

Added by ErikTheViking on Wed, 23 Feb 2022 07:56:06 +0200