Skip to content

Latest commit

 

History

History
120 lines (81 loc) · 2.27 KB

markdown.md

File metadata and controls

120 lines (81 loc) · 2.27 KB

#leran study

#!usr/bin/env python
#coding: utf-8

  • try to use markdown
  • try to use github
  • try to use flask
  • try to use MySQL

  • try to read tutorial
  • try to find object
  • try to be pythonic

  1. syntax
  2. semantics
  3. idioms
  4. libraries
  5. tools

##python code


  • moudle = ['os','sys','math','requests','bs4']
  • decodes = ['utf-8','gbk','ISO-8859-1','gb18030','gb2312']
  • encodes = ['gbk', 'utf-8']

not good

def add_end(L=[]):
L.append('END')
return L

better

def add_end(L=None):
if L is None:
    L = []
L.append('END')
return L

normal codes:

alist = [] for i in range(10): alist.append(i)


list comprehension:

[i for i in range(10)]

##for links:

This is an example reference-style link.

I get 10 times more traffic from Google than from Yahoo or MSN.


##emphasize single asterisks

single underscores

double asterisks

double underscores

*this text is surrounded by literal asterisks*


##code Use the printf() function.

There is a literal backtick (`) here.

A single backtick in a code span: `

A backtick-delimited string in a code span: `foo`

Please don't use any <blink> tags.

&#8212; is the decimal-encoded equivalent of &mdash;.

Alt text


markdown text

vibiu's git

See my Vibiu-s-python page for details.

© 2015 Vibiu Corporation