The content of this section:
Object-oriented Advanced Syntax section
Static methods, class methods, property methods
Special methods for classes
Reflection
Exception handling
Socket Development Basics
Summarize1, "function: can be expressed as" multi-line Comment "," multi-line string "," inside the single double quotes do not escape "2, R means: Raw3. R only works on the backslash (note the problem of individual \)What is the use of raw string?
There are several months of learning Python, and installing third-party libraries is done via PIP install or Easy_install. It feels too troublesome to open the command line every time. Fortunately Pycharm provides the ability to install third-party
Python Learning note 11-python built-in functionsFirst, look at the Python function description:https://docs.python.org/2/library/Second, Python built-in functions1, ABS get absolute value:View ABS from the Python website
abs(x)
Return
Class 2One, interactive programmingInteractive programming does not require the creation of a script file, it is written in the interactive mode of the Python interpreter.On Linux you only need to enter the Python command at the command line to
There are several types of data that can be stored in memory, and there are several types of data that can be processed directly in Python:Number (Numbers)Strings (String)Listing (list)Tuple (tuple)Dictionary (Dictionary)Collection (SET)Boolean
1.capitalize (Change the first character of a string to uppercase)2.casefold (all characters in the string are converted to lowercase)3.center (width) (centers the string and fills the length of the width with a space)4.count (calculates the number
Object-Oriented programming is a paradigm of the program, which regards the program as a kind of model for the real world, which is called by each other to different objects.The basic ideas, classes and instances of object-oriented programming.
Python's web framework has a variety of Django, Tornado, Flask and more, and Django has its advantages over other web frameworks: Chatty, the framework itself integrates ORM, model binding, template engine, caching, session and many more.Basic
I. Programming paradigmProgramming ParadigmProgramming is a programmer with a specific syntax + data structure + algorithm composed of code to tell the computer how to perform the task of the process, a program is a programmer in order to get a task
#encoding =utf-8# Create a TCP server program, this program will send the word to the customer.The # character string plus a timestamp (format: ' [Time] data ') is returned to the customer.From socket Import *From time import CTimeHost = ' 'Port = 21
Recently in the "Python Natural language Processing," the Chinese version of the book, probably because it is from py2.x to py3.x, plus the reason for the update of NLTK, or some of the author's clerical errors, in the book a lot of code can not be
Source of the problemThe problem is always like this suddenly, let me unprepared.The child is not a mother long story ah, the operating system is centos6.5 so the default comes with Python is 2.6.6, suddenly one day I want to write a Kafka topic
Python learning file operations,1. Open a file in python
#================================== Open python file () ==============================## open (fileName, type) type = "r" open a file in read-only mode, this file must exist file_r = open ("E:
Web2py -------------- example of using web2py to write django, web2pydjango
Follow the previous article to create an app named polls.
The file structure is as follows:
Then web2py automatically adds some code to it.
We need to remove some, such as
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