In Linux, Python 3 is installed. Although Python has been updated by default in my unbuntu 10.11, I will re-introduce how to install python in Linux. There are some installation tutorials on the Internet.Abstract:1. DownloadSource
The string object method upper can be used to convert Python strings in uppercase. The following example shows how to use it:
For example, String object mM = 'affefea'
Call the string method upperPrint M. Upper ()
Output result: afefefeaa
Next
At first, I thought that python does not have the abbreviation of condition judgment like other languages:
Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/-->
Return
(
1
=
1
)
?
"
Strip in python is used to remove the first character of a string. Similarly, lstrip is used to remove the character on the left, and rstrip is used to remove the character on the right. All three functions can be passed in a parameter, specifying
Install Python ide:
Eclipse supports many plug-ins. How to Design and install a plug-in, such:
1. From the menu, help-> install new software.
2. Specify the URL of the plug-in.
3. Enter keywords, such as pydev
4. select from the matched plugin.
The OS module in the python standard library contains common operating system functions. If you want yourProgramThis module is especially important if it has nothing to do with the platform. That is, it allows a program to run in Linux and Windows
[Edit this section]
Python resources:
Official homepage: http://www.python.org/
For Windows Python interpreter (including tkintergui development environment, a simple IDE, complete Extensive English documentation) 9 MB:
Original article address:Subprocess in Python
Author:Grinding From: http://li2z.cn/2010/04/14/python_subprocess/
Just like python built-in functions, the content is all from the official Python documentation, but it is not a simple translation.
RelatedArticle:You can also find information about network resources in the following articles.Example in Python: A Basic verification tutorialUrllib2 is a python component used to obtain URLs (Uniform Resource Locators. He provides a very simple
We need to retrieve the logs from the remote machine and analyze the logs. the logs are directly uploaded and backed up by dumpel.exe. I didn't find any better tools at the moment, but I had python in my hand. Below is a simple
Source code Only
DictionaryCreate a dictionaryAB = {"key1": "A", "key2": "B", "key3": "C "}, this statement creates a dictionary and adds three dictionary items to the dictionary. Note that the key here can only be a constant class, that is, the value of the content
ArticleDirectory
1. If statement:
2. While statement:
3. For Loop:
4. Break statement:
6. Continue statement:
5. Control Flow 1. If statement:
If the if condition is true,ProgramRun the if block. Otherwise, run the else
Python system modules include sys, OS, glob, socket, threading, _ thread, queue, time, timeit, subprocess, Multiprocessing, signal, select, shutil, and tempfile. Most system-level interfaces are concentrated in the SYS and OS modules.
The SYS
ASCII is a character set, including uppercase and lowercase English letters, numbers, control characters, etc, it is represented in a byte, range is 0-9 Unicode divided into UTF-8 and UTF-16. UTF-8 variable length, up to 6 bytes, less than 127
String operation
Strings are a key point in any language. They can be used flexibly to implement various powerful functions. In python, strings are also the case. standard sequence operations are also used for strings, but not for sharding
Turtle is the meaning of turtles. It originally belongs to the logo language (not played ).. however, other languages are supported later. one is smallbasic, and the other is Python. I never knew this library was actually built in Python. it is
The following installation is the development environment that I need to use. Install it as needed
Install MySQL$ Sudo apt-Get install mysql-Server
Install Apache$ Sudo apt-Get install apache2
Install PhP5$ Sudo apt-Get install PhP5 // install PhP5
PAMIE is a set of tools written for Python for automated Web testing. It is implemented using Win32COM to operate IE.Pamie is a good IE Operation ModuleIt is convenient to use pamie to operate IE browsers. Originally, it was an item for IE testing
Open source, address in https://github.com/atupal/webqq
Wait for time to write a complete cli qq client.Usage: python login_qq.py
Copy codeThe Code is as follows: import urllib2
Import httplib2
Import re
Import random
From encryption import
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