Today, I read the python learning manual. I can see that the input function can be used to pause the output script and assign the user's input value to a variable. I just tried it:
S = input ()
Print s
RunProgramEnter AA
However, an error is
Python is a programming language that lets you work more quickly and integrate your systems more than tively. You can learn to use Python and see almost immediate gains in productivity and lower maintenance costs.
Python runs on Windows, Linux/Unix,
All functions defined in class are method, including _ init __. each method has at least one parameter self, which is equivalent to this in C ++. The variables declared in the class are attributes, which can be added or deleted at any time.
Erlang is a distributed development language based on message transmission. It is easy to develop and has powerful functions. Although Erlang's FP programming is nothing for some FP geeker, there is still a huge gap to be told by most developers at
The Chinese characters read from common files, such as txt, are encoded in GBK format. However, I do not know the encoding after decode ('gbk. But it should be a unicode code.
I don't know if there is any good processing method. However, Chinese
From now on, we have made a specific game. The author is a game in each chapter. I am not very interested in some games. I only want to talk about these games.
The first game was a snake game. Speaking of this game, it may be one of the first games
Introduction to the basic functions of event
Http://blog.sina.com.cn/s/blog_4b5039210100exlg.html
The vent object implements a simple thread communication mechanism, which provides setting signals, clear signals, and waiting for inter-thread
Elementtree (element tree ).
Elementtree is an XML parsing library and has been included in the standard library after python2.5.
Elementtree is like a lightweight Dom with easy-to-use and friendly APIs. In addition to code reusability, it runs fast
In python, the variables defined by the module can be considered as global variables, but you need to pay attention to the assignment of global variables.Test. PY ---------------------------------------------- import sysusername = "muzizongheng"
0. Two small Functions
Str.
Rstrip
([
Chars]
) Cut the right character action
>>> ' spacious '.rstrip()' spacious'>>> 'mississippi'.rstrip('ipz')'mississ'
Python has a copy module that can perform deep copy operations.
1.
ADODB: database connection component recommended by our leadersBsddb3: berkeleydb connection componentCheetah-1.0: I prefer this version of cheetah.Cherrypy: A web frameworkCtypes: used to call the dynamic link libraryDbutils: Database Connection
Note: It is concise and clear to describe the importance of program maintenance.
Document: uses the _ Doc _ special variable to dynamically obtain the document string. The first unassigned string in the module, class declaration, and function
From half past one pm to AM, I have finished reading the official Python getting started tutorial (translated in Chinese). Most of the small examples have also been run one by one. Fortunately, it was quite smooth.
In fact, as early as a year ago, I
Def functionname (arguments): # function name (parameter list _ optional)
Suite # function body
Def get_int (MSG ):
While true:
Try:
I = int (input (MSG ))
Return I
Failed t valueerror as ERR:
Print (ERR)
Age = get_int
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