The learning content notes about character encoding are as follows:1, the computer can only use 0 and a record and storage. The computer is binary.2, ASCII (American Standard Code for Information Interchange, the United States Standards Information
unittest Core to be Vegetarian1.TestCasea An instance of TestCase is a test case. What is a test case? is a complete test process, including pre-test preparation Environment setup, execution of test code (run), and post-test environment restore
# compare size # Method 1 from math import Maxa = (" Enter the first integer: " ) b = ( " Enter a second integer: " ) c = ( " Please enter a third integer: " ) d = Max (A, B, c) print (" "%d) #How to Exchange two
STR is shorthand for strings.1.1 str Application 1.1.1 Strip explanationStrip is to remove the string from the end of the line, newline characters, \ t, etc.Application example of 1.1.1.1 strip: Remove the spaces on both sides of the value
The bubbling sorting algorithm works as follows:
Compares the adjacent elements. If the first one is bigger than the second one, swap them both.
Do the same for each pair of adjacent elements, starting with the last pair from the first
XPath is a language for locating elements in an XML document, commonly used in XML, HTML file parsing, and easier to use than CSS selectors.
XML file minimum constituent unit:
-Element (Elements node)
-Attribute (attribute node)
-Text
1, first view the default system version: Display as 2.7.52. We create a Python folder under root to hold the Python installation package we downloaded:3. Then use the wget command to download the installation package:wget HTTPS://WWW.PYTHON.ORG/FTP/
Six MusketeersA line of six musketeers: three functions: Map filter reduce + lambda slice deduction listPython's most distinctive line of code, all code can borrow one line of code (target)1.map (function, list, or string) #字符串或者列表中每个字符或每个元素都带入函数运算1.
# # #list类的方法# # # #append Last add an element in the listA = [1,2,3,4,5,6, "DSSDSD"]A.append (5)Print (a)# # #clear Empty the elements in the listExample:A = [1,2,3,4,5,6, "DSSDSD"]A.clear ()Print (a)# # #copy Copy ListExample:A = [1,2,3,4,5,6,
Re. What's the use of ignorecase? Re. What do you mean, ignorecase? (Forgive me for grasping the SEO.) )Here itself summarizes:Re. IgnoreCase is a matching pattern in the compile function.Re. IgnoreCase means ignoring the case . Example.is not
when developing Python projects, it is necessary to create multiple Python virtual environments in a virtual environment, because different projects require different resource bundles and related configurations. Install the virtual environment
Before, in learning Python, always confused the Pickle and JSON module serialization and the use of the inverse of the example, the recent idle time to re-examine the two modules, is basically to understand the difference between them.Two modules
The following reference is from the Runoob Web site to summarize Python function knowledge points and consolidate the basics, hereby acknowledge!Original address: http://www.runoob.com/python3/python3-function.htmlScoping and referencing scopes for
Pycharm shortcut,The following shortcuts are collected on the Internet and only common sections are verified.Editing class:Ctrl + Space Basic Code Completion (class, method, attribute) ctrl + Alt + Space class name Ctrl + Shift + Enter statement
Django static file, django static
Django static files (js scripts, CSS, images, etc)
By default, it is stored in the static folder of each app,
The static file collection command automatically copies the files in the static folder under each app
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.
A Free Trial That Lets You Build Big!
Start building with 50+ products and up to 12 months usage for Elastic Compute Service