Import datetime, CalendarDate = Datetime.datetime.now () Gets the current system time#1, return to yesterday's dateDef getyesterday ():Today=datetime.date.today ()Oneday=datetime.timedelta (Days=1)Yesterday=today-onedayreturn yesterday#2, return to
1.setFeatures: unordered and non-repeating collectionsA. CreateLi = [] principle: List ((1,2,3,4)) list _init_ method, internal loop for loop (1,2,3,4)Dictionary type definition: dict = {"K1": 123}Set type definition: set = {"123", "456"}B.
1: First go to the Python website to download the installation package: https://www.python.org/downloads/, note your system version2: In their own designated directory installation can;3: Add the Python path to the PATH environment variable:Windows
You need to use a two-dimensional array in your program to find such a usage on the Web:
123456
#创建一个宽度为3,高度为4的数组#[[0,0,0], # [0,0,0],# [0,0,0],# [0,0,0]]myList =[[0] * 3] *4
But when operation mylist[0][1] = 1
In Python, the file operations are mainly from the OS module, the main methods are as follows:Os.listdir (dirname): List directories and files under DirNameOS.GETCWD (): Get current working directoryOs.curdir: Returns the current directory ('.
Download the python configuration file from http://www.sourceinsight.com/public/languages/PYTHON.CLF
Select Options > Preferences, click the Languages option;
Click the Import button to load and import PYTHON.CLF;
At this point, you can see
The function is in the form of:Linspace (Start, Stop, num=50, Endpoint=true, Retstep=false, Dtype=none)The function is: to return the data at a fixed interval within the specified time. He will return "num" to a sample of equal spacing, in the
Pyyaml ModulePython can also easily handle the Ymal document format, but requires the installation of a module, reference document: Http://pyyaml.org/wiki/PyYAMLDocumentationConfigparser module of common modulesUsed to generate and modify common
Today is the first day of Sir Wu to give us lectures, very wonderful.Go to the Chase:The points of knowledge learned today include:1,setUnordered, non-repeating, can be nested.2, functionDefine a function, the body of the function does not execute,
Tomorrow's interview also do not know what the company will be, in order to calm down the mood, do a few python to relieve boredom, self-simulation.1) Enter a string from the keyboard, convert all lowercase letters into uppercase letters, and then
Basic Python and python tutorialsWhen Python executes a certain type of code, it is equivalent to executing the _ init _ method, for example, list () list _ init __
A set of unordered and non-repeating elements can be considered as a set in
Python basics day 3, python Day 3Ternary Computation
A triplicate operation is also called a triplicate operation. It is short for a simple conditional statement, for example, if# Standard if judgment syntax if 1 = 1: name = "yes" else: name = "no" #
S13 day3 job, s13day3
Ha_proxy configuration file modification programHa_file is the file that stores configuration information. This file is operated during running.1. Query Information: Enter the domain name to obtain domain name information.2.
Python entry ----- Windows installation, python ----- windows
Abstract: Python, windows Installation
1. Go to the python official website download: https://www.python.org
Click Download and select windows:
2. After the download is complete,
3. The first python program and the first python Program
To learn any language, you must first write 'Hello world', which is a programmer's tradition. But before writing, you should pay attention to several issues.
First, python is a scripting
5. python string, 5. python string
I mentioned the word "string" before and now I will learn what a string is.
First, the string is the built-in data type of python. It is characterized by quotation marks and can be single quotation marks ('string')
[Django] How does django deploy static files on apache2 to load,
First, find httpd. conf In the conf file of apache2 and add the following information:
Alias/static/E:/wamp/Apache24/www/static/ Options FollowSymlinks AllowOverride none Require
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