---
# Python 简介
@su27 and @menghan
---
-
高级
-
易学易读易维护
<table> | |
<caption>打开/前往</caption> | |
<colgroup> | |
<col style="text-align:left;width:150px"/> | |
<col style="text-align:left;"/> | |
</colgroup> | |
<thead> | |
<tr> | |
<th scope="col">快捷键</th> | |
<th scope="col">说明</th> |
#!/usr/bin/env python | |
# link: http://www.emacswiki.org/emacs/PythonMode#toc7 | |
# | |
# This is a script which runs and parses the output of various Python code | |
# checking programs to work with flymake. It has lots of issues, one being that | |
# flymake does not seem to show more than one error message per line of code, | |
# meaning that an error or warning which is intentionally left unfixed can mask | |
# an error or warning that would get more attention. | |
# | |
# Additionally, the scripts which check python code are either rather anemic, |
If you ever need to download an entire website, perhaps for off-line viewing, wget can do the job — for example:
$ wget --recursive --no-clobber --page-requisites --html-extension --convert-links --restrict-file-names=windows --domains website.org --no-parent www.website.org/tutorials/html/
This command downloads the website www.website.org/tutorials/html/.
The options are:
--recursive
: download the entire website--domains website.org
: don't follow links outside website.org// Node.js CheatSheet. | |
// Download the Node.js source code or a pre-built installer for your platform, and start developing today. | |
// Download: http://nodejs.org/download/ | |
// More: http://nodejs.org/api/all.html | |
// 0. Synopsis. | |
// http://nodejs.org/api/synopsis.html |
// XPath CheatSheet | |
// To test XPath in your Chrome Debugger: $x('/html/body') | |
// http://www.jittuu.com/2012/2/14/Testing-XPath-In-Chrome/ | |
// 0. XPath Examples. | |
// More: http://xpath.alephzarro.com/content/cheatsheet.html | |
'//hr[@class="edge" and position()=1]' // every first hr of 'edge' class |
#!/usr/bin/env python | |
"""Simple HTTP Server With Upload. | |
This module builds on BaseHTTPServer by implementing the standard GET | |
and HEAD requests in a fairly straightforward manner. | |
""" | |
I liked the way Grokking the coding interview organized problems into learnable patterns. However, the course is expensive and the majority of the time the problems are copy-pasted from leetcode. As the explanations on leetcode are usually just as good, the course really boils down to being a glorified curated list of leetcode problems.
So below I made a list of leetcode problems that are as close to grokking problems as possible.