ÅäÖÃvim Ìá¸ß±àдpython½Å±¾µÄЧÂÊ
ʹÓÃpython.vimʹpython´úÂë¸ßÁÁ
http://www.vim.org/scripts/script.php?script_id=790
ʹÓÃ
Pydiction²å¼þʹvimÔö¼Ótab´úÂëÌáʾ¹¦ÄÜ
http://www.vim.org/scripts/script.php?script_id=850
¾ßÌå°²×°·½·¨¿ÉÒÔ²ÎÕÕ°ïÖú»òÕßREADME£¬ÒòΪ°æ±¾±ä»¯»áµ¼Ö°²×°·½·¨ÉϲúÉú²îÒì
±à¼~/.vimrcÎļþÔö¼ÓÏÂÃæÑ¡Ïî
set nu Ôö¼ÓÐкÅÏÔʾ¹¦ÄÜ
set tabstop=4 ÉèÖÃtab¼üµÄ¿í¶È
set shiftwidth=4
set expandtab ½«tabÌæ»»³ÉµÈ¿í¶ÈµÄ¿Õ¸ñ
Ïà¹ØÎĵµ£º
'''gen_python_api.py generates a python.api file for SciTE
The generated api file includes
*) all Python keywords
*) all builtin functions
*) all module attributes
Module functions are represented by their docstring if available,
otherwise by the function definition from the source file. ......
1 ±éÀúÎļþ¼ÐºÍÎļþ
import os
import os.path
# os,os.pathÀï°üº¬´ó¶àÊýÎļþ·ÃÎʵĺ¯Êý,ËùÒÔÒªÏÈÒýÈëËüÃÇ.
# Çë°´ÕÕÄãµÄʵ¼ÊÇé¿öÐÞ¸ÄÕâ¸ö·¾¶
rootdir = " d:/download "
for parent, dirnames, filenames in os.walk(rootdir):
  ......
http://code.google.com/p/shedskin/ Shed Skin 0.3 - support for 3 new standard library modules (now about 20 in total): - itertools (jeremie roquet) - heapq (jeremie roquet) - csv (converted using shedskin) - 4 new example programs (now 44 in total!): - maximum weighted matching al ......
1.#£º×¢ÊÍ·û
2.±È½ÏÔËËã·û(»ù±¾ºÍJavaÀàËÆ)
< <= > >= == != <>
PythonĿǰ֧³ÖÁ½ÖÖ"²»µÈÓÚ"±È½ÏÔËËã·û£¬!=ºÍ<>£¬·Ö±ðÊÇC·ç¸ñºÍABC/Pascal·ç¸ñ¡£Ä¿Ç°ºóÕßÂýÂýµØ±»ÌÔÌÁË£¬
ÍÆ¼öʹÓÃǰÕß¡£
ÔÚPythonÖУ¬Ö§³Ö3<4<5ÕâÑùµÄ±í´ïʽ£¬¼ ......