Function: Refers to the collection of a set of statements by a name (function name) to encapsulate, to execute this function, just call its function name.def sayhi (): # function namePrint (' Hello World ')Sayhi() #调用函数, call the function with
1, the function to manually pass self, the method does not have to pass self2, if it is a function, with the class name to call, if it is a method, with the object to callTo illustrate:Class Foo (object): def __init__ (self): self.name=
1. PIP for package managementDocument: Https://pip.pypa.io/en/latest/installing.html# installation, can specify version number(sudo) pip install django==1.6.8# Upgrade(sudo) pip install Bpython--upgrade# install more than one at a time(sudo) pip
Improve your blogPage OverviewBlog home sideBlog post content pageBlog Writing pageBlog home sideArticle title list, hyperlinksPost a blog button (hyperlink)List Writing IdeasTake out a list of all the articles in the databasePackage article objects
1. Creation of the listAlist = [123, ' abc ', 4.56,[' inner ', ' list '], ' dchen ', ' Blank sapce '] #方刮号为列表, the array inside of it is added as its own case2. Slicing operations on a list
Print (alist[0]) #选择列表第一个元素, the first element of
1,python file Standard start:#!/usr/bin/env Python3#--Coding:utf-8--2,import sys.,Sys.args is a list that contains a list of command-line data.3, install Anaconda:Download software on official website: https://www.anaconda.com/download/Edited in the
1, Concept: Iterable and IteratorIterable indicates that the variable can be iterated by for in.Iterator indicates that the variable can be iterated by next (O)(The previous represents a finite iteration, and the next represents an inert iterative
Tuple and list, can contain 0, one and any number of elements. A tuple that contains multiple elements, which we have created earlier. A tuple of 0 elements, which is an empty tuple, is represented directly by (): >>> T = ()>>> Print T() What about
We saw in the front that the tuple cannot be modified once it is created. Now, let's look at a "mutable" tuple: >>> t = (' A ', ' B ', [' A ', ' B ']) Notice that T has 3 elements:' A ', ' B ' and a list:[' A ', ' B ']. List as a whole is the 3rd
python text character and character value conversions scene: convert characters to ascii or unicode encoding During the conversion process, note the use of the ord and CHR method >>>Print (ORD (' A ')) the >>>print (Chr (
sys.argv command line argument list, the first element is the program itself path Sys.exit (n) exits the program, exit normally exits (0) Sys.version Gets the version information of the Python interpreter SYS.M Axint the largest int value Sys.path
Talking about python iteratable objects, iterators, and python object generation
Iterator
An iterator is a more abstract concept.
Iteration is a way to access data. An iterator is an object that can remember the traversal position. The iterator
VUE-es6,
Es6:
Es: EMCAScript 6 (es2015)
Emca: International Standards Organization
I. constants and variables
Const a = 'hello' constant const can be defined only once and cannot be repeated
The value of the variable declared by const cannot be
Python learning path: staticmethod classmethod property method,
Reference: http://www.cnblogs.com/alex3714/articles/5213184.html
Static Method
Only nominal Classification Management. In fact, the static method cannot access any attributes of the
My first python web development framework (21) -- Summary, pythonweb
This small website was finally successfully launched. In addition to a small amount of money, Xiaomei received praise from the Goddess Xiaomei. After work this day, he invited the
VUE framework and vue framework
1. What is vue?
It is a JAVASCRITPO framework for building user interfaces.
Ii. How to Use VUE
(1) Introduce vue. js example: {{msg}} Index
Title QR code logon email logon
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