Job 2: Multilevel menuLevel three MenuYou can select to go to each submenu in turnNew knowledge points required: list, dictionary
1. Flowchart2, login interface, enter the corresponding index#!/usr/bin/env python3#-*-coding:utf-8-*-#
1. UnitTestReference Document: Https://docs.python.org/3/library/unittest.htmlThe UnitTest unit Testing framework is originally inspired by JUnit and have a similar flavor as major unit testing Framew Orks in other languages. IT supports test
Number types supported by Python:-Shaping (standard shaping), long-shaped, Boolean, double-precision floating-point, decimal floating-point, and pluralTo explicitly delete a numeric object:>>> num=3>>> print num3>>> del num >>> print numtraceback
List of knowledge points1. Create a listAssign a value to a variable a list shape such as: List = []the list is empty and can be solid such as: List_name =[' Ergou ', ' Goudan ', ' Xiaolizi ']2. Operation of the listEverything you create in Python
References:[1]. http://python.jobbole.com/81129/This article discusses the use of the Python underline (_) character. We'll see that, as with many things in Python, the different uses of underscores are mostly (not all) just common practice.Single
set a bit:1, access Speed 2, born to solve the problem of repetitionTuple differs from set: tuple repeatable, set not repeatableGen Jie Collection 1>>> S1.add (' Alex ')>>> Print (S1){' Alex '}>>> S1.add (' Alex ')>>> Print (S1){' Alex '}Create a
Python list derivation pythonlist comprehensions
List comprehensionsList Comprehensions is an elegant from to build a list without have to use different for loops to append values one by O Ne.
The simplest
Internet Simple read a few blogI tried a simple reptile by myself.Hey, yo.I have a feeling.It's fun.I've been blogging a little bit about writing tutorials or something.It's a weird writing.Various copy and pasteIt's not very comfortable writing.How
The first piece of crap too much, my blog The most important thing is to see for themselves, we feel that also can see, can say their ideas is better, because a person's thinking is limited. Brainstorm, your own cognition will not be imprisoned.Note:
Build a server like PyPI source yourselfInstall httpd FirstUsing httpd to monitor the Python library directory simpleThe Python library file can be seen on the Web page to open the server Ip:portIP for server ip,port port for httpd monitoring Python
Variables in Python do not need to be declared. Each variable must be assigned before it is used, and the variable will not be created until the variable is assigned.In Python, a variable is a variable, a memory address pointer, which has no type,
Upgrade Python under CentOS
First, view the Pyhton version of the machineNative Centos6.5 Pre-band Pyhton version is 2.6.6# python--version>>python 2.6.6Second, download to upgrade the latest Python installation packagecan go to the official
Source: http://www.cnblogs.com/yd1227/archive/2010/11/15/1877467.htmlSorting is not prioritized.1.os and OS Related2.time is time-related3.pcap Grab Bag4.DPKT Unpacking and Packaging5.pymssql operation of MSSQL database6.cProfile self-debug script
Django uses custom authenticationDjango creates a login application using custom authentication
First, create a new login app to store the authentication code.
python manage.py startapp loginModify the authentication items in settings.
Python calculator (Day 4), python Calculator
Job:
Use regular expressions and recursion to implement the calculator function.
Implementation:
1. Implement calculation with parentheses
2. Implement functions such as exponential, addition,
Python crawls articles,
I want to develop a website for collecting articles, but I can't find the entrance link from my own student. I have read a lot of information on the Internet and found that the practices are similar in general, all of which
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