#标题前有一个#号
链接: here
引用:
our life is fritterd away by details, simplify, simplify
#标题前有一个#号
链接: here
引用:
our life is fritterd away by details, simplify, simplify
HEADERS | |
This is an H1 | |
============= | |
This is an H2 | |
------------- | |
# This is an H1 |
# grep -o 'UCanUup' UCloud.txt |wc -l | |
728 | |
# python -c "import re | |
> c=0 | |
> with open('UCloud.txt') as f: | |
> for line in f: c += len(re.findall(r'''\bUCanUup\b''', line)) | |
> print c" | |
728 |
from: | |
http://chase-seibert.github.io/blog/2014/01/12/python-unicode-console-output.html | |
Print to the console in Python without UnicodeEncodeErrors 12 Jan 2014 | |
I can't believe I just found out about this! If you use Python with unicode data, such as Django database records, you may have seen cases where you print a value to the console, and if you hit a record with an extended (non-ascii) character, your program crashes with the following: | |
Traceback (most recent call last): | |
File "foobar.py", line 792, in <module> | |
print value | |
UnicodeEncodeError: 'ascii' codec can't encode character u'\xa0' in position 20: ordinal not in range(128) |
https://docs.djangoproject.com/en/1.11/ref/contrib/admin/actions/ |
如何贡献 | |
在Github上Fork到自己的仓库 | |
将fork后的项目拉到本地: git clone https://github.com/<user-name>/kubernetes-handbook | |
新建一个分支,并添加或编辑内容:git checkout -b new-branch | |
提交并推送到github:git commit -am "comments"; git push | |
在Github上提交Pull Request。 |
Some basic conventions for contributing to this project.
Please make sure that there aren't existing pull requests attempting to address the issue mentioned. Likewise, please check for issues related to update, as someone else may be working on the issue in a branch or fork.