What is HTML?
Http://www.w3school.com.cn/index.html
HTML is the initials of hypertext mark-up Language, meaning Hypertext Markup Language,
Hypertext refers to a hyperlink, a tag is a label, is a language used to create a Web page,
SYS.ARGV command line argument list, the first element is the program itself path is represented by a listImport Sysprint (SYS.ARGV) ['c:/users/administrator.qh-20170325tnqr/pycharmprojects/ss/day5/sys mod.py']Sys.path Returns the search
Language type
Compiled language: needs to be compiled into binary file run (c,c+,c#)
Interpreted language: Run-time requires compilation, side-compilation Side Execution (Python,php,shell,ruby,js,java)
Scripting language: Only a
#Process: The basic unit of the system for resource scheduling;#A program performs a dynamic process on a data set;#Process: Program, data set, Process control block;#1. Program: Describe the completion of the process function;#2. Data set: The
The List,tuple,string,bytes object can be sliced to produce a new object of these classes.Format: Li[start:stop:step]List slice:1>>> Li = ['Michael','Sarah','Tracy','Jack','Black']2>>>Li[0]3 'Michael'4>>>li[-1]5 'Black'6>>>li[1:3]7['Sarah','Tracy']8>
Https://www.cnblogs.com/strongYaYa/p/7200357.htmlThere are two functions under the OS module:Os.walk ()Os.listdir ()1 #-*-coding:utf-8-*- 2 3 import os 4 5 def file_name (file_dir): 6 for Root, dirs, files in
First, historyPython's Genesis is Guido van Rossum (Guido van Rossum). The Chinese name is: Uncle Turtle. Python was created in 1989.Python advocates: Beautiful, clear, simple.the difference between 1.python2 and Python3Because Python2 has a large
Chapter4 Action list 4.1 traverse the entire list magicians=[' Alice ', ' David ', ' Carolina '] for magician in Magicians: Print ( Magician) 4.1.1 in-depth study of loops 4.1.2 do more in the For loop 4.1.3 perform some actions after the for
One, double underlineIf you want the internal properties to be inaccessible externally, you can add two underscores to the name of the property, and __ in Python, the variable name of the instance __ becomes a private variable (private), which can
Here we have to learn iterable and iterator.A class is a collection of data types, such as,,, list tuple , and dict set str so on;One is generator , including the generator and yield the generator function with the bandBoth of these can be used for
DefinedEssence is a function, (decorating other functions) adds additional functionality to other functions.Principle
Cannot modify the source code of the decorated function
Cannot modify the calling method of the decorated function
Before using threading.local (), take a look at local variables and global variables.Local variables:Import Threadingimport timedef worker (): x = 0 for i in range: time.sleep (0.0001) x + = 1 print ( Threading.current_thread (
1) Simple application of ZipFileIf you are simply using Python for compression and decompression, the method is as followsImportZipfilef= ZipFile. ZipFile ('Filename.zip','W', ZipFile. zip_deflated) F.write ('1.txt') F.write ('2.doc') F.write
1. Use while loop input 1 2 3 4 5 6 8 9 102. For all numbers of 1-1003. All odd numbers in output 1-1004. All even numbers in output 1-1005, Beg 1-2+3-4+5 ... 99 of all numbers of the and6. User Login (three chance retry)1. Use while loop input 1 2 3
Randomrandom. Randrange ([start,] stop [,step]) # output random. Uniform(x, y)
Randomly generates the next real number, which is within the [x, Y] range.
random. Randint(x, y)
Randomly generates the
Reference URL:http://blog.csdn.net/mach_learn/article/details/41744487Beginner's TutorialThank you ~Automatically identify the verification code, will be some of the interference factors are also identified, there are some special symbols, so the
The first Python web development.Related to: Flask architecture, MySQL database.Function: Diary. Development.Flask architecture, MySQL database.Function: Diary.1 fromFlaskImportflask,render_template2 fromFlaskImportRequest3 ImportPymysql4 5 6 7
This article is mainly for you to introduce the PYTHON3 implementation of the QQ mail function, accessories, with a certain reference value, Python3 interested in the small partners can refer to
The example of this article for everyone to share the
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