if __name__ = = ' mainA python file has two methods to use, the first is to execute directly as a sequence , and the second is to import into other Python programs called (module reuse) execution .So if __name__ = = ' main ': The action is to
1, after starting the program, enter the user name password, if it is the first time to log in, let the user enter wages, and then print the product list2. Allow users to purchase goods according to the product number3, the user selects the goods,
Introduction to a document operation and theoryComputer system is divided into: hardware, operating system, application of three partsWe use Python or other programs, want to keep the data permanently, we have to write to the hard disk, but the
python full stack development-day7 file processingOne, the file operationFirst, IntroductionComputer systems are divided into:computer hardware, operating systems, applicationsThree parts. Applications that we write in Python or other languages need
I. Knowledge RESERVEcpu--Control and operationMemory--Temporarily store data required by the CPUHard drive--permanently save data2. Principles of the text editor principle of storage1. Start the text editor2, enter the content on the editor---at
the better version of Python is Python3.4.4, both for MySQL and for DjangoWhat is Python version can I use with Django?
Django version
python versions
1.8
2.7, 3.2 (until the end of the), 3.3,
Just using Python's readline (s) to read the discovery of the file will always appear in the format of some small errors, and then think of it because the file newline characters and other symbols (\n\r\t) will also be readline (s) to read, the
File monitoring in Python has two main libraries, one is pyinotify (Https://github.com/seb-m/pyinotify/wiki) and the other is watchdog (http://pythonhosted.org/ watchdog/). Pyinotify relies on the inotify of the Linux platform, which encapsulates
Method for reverse query of URLs in Django, djangourl reverse Query
This article describes the reverse query of URLs in Django and shares it with you, as follows:
Clarify several concepts:
1. application namespace:
Name of the app being deployed.
How does python save memory for creating a large number of instances?
How does python save memory for creating a large number of instances? The details are as follows:
Case:
In an online game, a Player (id, name, status,...) is defined ,....), each
Django learning record first day, django first day
From this article, I will record my Django learning process.
Day-1
I
The first step is to install Django. I chose Django1.11. Why choose 1.11, because it is a long-term technical support version
Python basics 6: python BasicsI. id
The value to be compared. The output result is True or False.
Is compares the memory address
Id to view the memory address
The memory address is equivalent to the room number a = 1000
B = 1000
Print (a = B)
#==
Python full stack development-Day7 character encoding summary, python-day7Full-stack python development-Day7 character encoding summary I. character encoding Summary1. What is character encoding?
Human Character --------- translation ---------
Selenium BASICS (I): selenium Basics
Selenium Installation
pip install selenium
How selenium operates browsers
Selenium RC was used in selenium 1.0 in the early stage. Later, selenum2 collected selenium1.0 + webdriver, and selenium RC was replaced
Python data analysis _ Pandas _ window function, python_pandas
Window functions are often used in frequency-domain signal analysis. In fact, I don't know much about it. It is probably a piece of infinite signal, and then it is extended into a
Python crawler engineer interview summary, python Crawler
Note: answers are generally found online.
1. Statement of Understanding if _ name _ = 'main'
2. How does python perform memory management?
3. Write a piece of Python code to delete duplicate
Python3 replace () function usage, python3replace
DescriptionThe replace () method replaces the old (old string) in the string with new (new String). If the third parameter max is specified, the replacement cannot exceed max.
SyntaxReplace () method
Full-stack python development-Day5 tuples, dictionaries, python-day5Full-stack python development-Day5 tuples and dictionariesI. PrefaceFirst of all, no matter what data type we learn, we will start learning with the following questions:#1: basic
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