Strftime format the time. The strftime format of python is a real subset of the time formats supported by the C library.
% A: weekday name, abbr.
% A full name of the day of the week
Abbreviated month name, abbr.
% B full name of month name
Lai Yonghao (http://laiyonghao.com)
Today, I saw a collection of Python interview questions (simple-is-better.com) IN THE http://simple-is-better.com/news/596, which has some good questions, such as "How is Python type conversion ?", There
1. Install Python
Common PythonProgramYou can run it.
2.install pywin32-218.win32-py2.7.exe
You can run Windows applications that do not rely on Python written in other libraries, such as desktop programs and office programs.
3. If you need to
Filename = raw_input ('enter file name: ') F = open (filename, 'rb') F. seek (0, 0) Index = 0 for I in range (0, 16): Print "% 3 S" % hex (I ), Print for I in range (0, 16): Print "%-3 s" % "#", Print while true: temp = f. read (1) If
Open-source visual Python Performance Tuning tool VPT released
Visual pytune (VPT for short) is an open-source project created by myself. I hope it will help the majority of pythoner and welcome your valuable comments and suggestions.
Origin:
Lai Yonghao (http://laiyonghao.com)
This is what I did when I completed my course assignments during my master's degree in engineering. It has been a few years since I put it in the corner of Dropbox. Recently, @ shugelee suddenly came up
Python variableVariable name_ Variable names consist of letters, numbers, and underscores_ The digit cannot start_ Unavailable system keywords_ A A1 A _ A_1
Variable assignment-It is the process of variable declaration and definition.A = 1LD
Use python for image processing
Recently, I am working on verification code recognition to learn some new skills. Because I am a beginner, I don't know much about image processing. To do my best, I must first use the image processing tool.
Lai Yonghao (http://laiyonghao.com)
Note:0. Read this articleArticleYou need to understand the basic usage of OpenMP.1. Understand the basic concepts of Gil in this article.2. It is basically the translation of this article.3. This document
Python 3.0 Beta 1 changes a lot, making it simpler and more unified
This article was originally published in The LAI Yong Hao (Love butterfly) blog (http://blog.csdn.net/lanphaday), such as reprint, please keep the full text complete, do not
large subsidies
Author: Lai Yonghao Preface
I posted a post on is not recommended> a few days ago. Some friends pointed out that this book is not suitable for beginners, but some of the content can still be used as an improvement article. The
I haven't updated my blog for a long time. Today I will share with you a multi-threaded web page download tool implemented yesterday.
This is an implementation with real needs. My purpose is to use it to submit game data to the server through HTTP.
Httplib is a relatively low-layer HTTP request module with dedicated packaging modules, such as urllib built-in modules and goto third-party modules. However, the higher the encapsulation, the less flexible it is, for example, in the urllib module,
Module is an important concept in Python. A common case is to write a statement in advance. py file, which will be written in advance when the import is required in another file. copy the py file to the current directory, or in SYS. add the
1. Python Panorama
1. The program is composed of modules.
2. Module inclusion statements
3. Statement inclusion expression
4. Expression creation and processing of Objects
Ii. Basic data types and standard operations in Python
Built-in
Template Method Mode: Defines the skeleton of an algorithm in an operation, and delays some steps to the subclass. Therefore, the template method allows subclass to redefine certain variables of an algorithm without changing the structure of an
Lai Yonghao (http://laiyonghao.com)
Note: I previously published a concise Python programming specification (see: http://blog.csdn.net/lanphaday/article/details/2834883), which was developed for my company at that time. When I published my blog,
May 5, 2010 update: I translated an article " non-dead" as a further support for this point of view and reply to the comment, see: http://blog.csdn.net/lanphaday/archive/2010/05/05/5558617.aspxWhy is "Dive into Python" not recommended?
Author: Lai
Chapter 3-String object
String object definition:Typedef struct {Pyobject_var_headLong ob_shash;Int ob_sstate;Char ob_sval [1];} Pystringobject;Because the string is a variable-length object, there is a variable-length object header.Ob_shash is used
Chapter 4-list object
List object definition:Typedef struct {Pyobject_var_headPyobject ** ob_item;Py_ssize_t allocated;} Pylistobject;The list object is a variable-length object, so there is a variable-length object header.The ob_item array is a
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