- 浏览: 108645 次
- 性别:
- 来自: 北京
最新评论
-
hzpfly:
...
Amusing Python 2: range/xrange -
bcw104:
不支持中文路径
Python 中怎么 copy 文件和目录 -
snageyang:
10000的结果xrange 0.65599989891 0 ...
Amusing Python 2: range/xrange -
caesarok:
有的没那么简单,呵呵
Python 中使用 FTP -
cloudhe:
qubic 写道
引用
Ruby 没有类似 Jython 的东 ...
Python and Ruby
Open \UEStudio 06\wordfile.txt (or find in UE menu: 高级->配置->编辑器显示->语法加亮->打开).
Append following to the file: (the "/L14" in line one must be changed to the existing last number in your own file plus one)
/L14"Python" Line Comment = # Escape Char = \ File Extensions = PY PYW /Indent Strings = ":" /Function String 1 = "%[ ,^t]++def[ ]+^([a-zA-Z0-9_]+*^):" /Function String 2 = "%[ ,^t]++^(class[ ]+[a-zA-Z0-9_]+*^):" /Delimiters = []{}()<>="'.,:+@ /C1"Reserved Words" and as assert break class continue def del elif else except exec finally for from global if import in is lambda not or object pass print raise range return try while yield /C2"Built-in Functions" __import__ abs apply basestring bool buffer callable chr classmethod cmp coerce compile complex delattr dict dir divmod enumerate eval execfile Ellipsis file filter float frozenset False getattr globals group hasattr hash help hex id input int intern isinstance issubclass iter joinfields len list local long map match max min None NotImplemented oct open ord pow property raw_input reduce reload repr round search set setattr slice sorted str splitfields tuple type True unichr unicode vars xrange zip /C3"__Methods__" __abs__ __add__ __and__ __call__ __cmp__ __coerce__ __contains__ __del__ __delattr__ __delitem__ __delslice__ __div__ __divmod__ __eq__ __float__ __floordiv__ __ge__ __getattribute__ __getitem__ __getnewargs__ __getslice__ __gt__ __hash__ __hex__ __iadd__ __iand__ __idiv__ __ilshift__ __imod__ __imul__ __init__ __int__ __invert__ __ior__ __ipow__ __irshift__ __isub__ __iter__ __ixor__ __le__ __len__ __long__ __lshift__ __lt__ __mod__ __mul__ __ne__ __neg__ __nonzero__ __oct__ __or__ __pos__ __pow__ __radd__ __rand__ __rdiv__ __rdivmod__ __reduce__ __reduce_ex__ __repr__ __reserved__ __rfloordiv__ __rlshift__ __rmod__ __rmul__ __ror__ __rpow__ __rlshift__ __rrshift__ __rshift__ __rsub__ __rtruediv__ __rxor__ __setattr__ __setitem__ __setslice__ __str__ __sub__ __xor__ add append capitalize center clear close conjugate copy count decode difference discard Decimal encode endswith expandtabs extend find flush fileno fromkeys get getcontext has_key index insert intersection intersection_update isalnum isalpha isatty isdigit islower isspace issubset issuperset istitle isupper items iteritems iterkeys itervalues join keys ljust lower lstrip next pop popitem read readline readlines remove replace reverse rfind rindex rjust rsplit rstrip seek setdefault sort split splitlines startswith strip swapcase symmetric_difference symmetric_difference_update tell title translate truncate union update upper values write writelines zfill /C4"__Attributes__" __author__ __bases__ __class__ __dict__ __doc__ __email__ __methods__ __members__ __name__ __slots__ __version__ /C5"Exceptions" ArithmeticError AssertionError AttributeError DeprecationWarning EnvironmentError EOFError Exception FloatingPointError FutureWarning ImportError IndentationError IndexError IOError KeyboardInterrupt KeyError LookupError MemoryError NameError NotImplementedError OSError OverflowWarning OverflowError PendingDeprecationWarning ReferenceError RuntimeError RuntimeWarning StandardError StopIteration SyntaxError SyntaxWarning SystemError SystemExit TabError TypeError UnboundLocalError UnicodeError UnicodeDecodeError UnicodeEncodeError UnicodeTranslateError UserWarning ValueError Warning WindowsError ZeroDivisionError /C6"Operators" += -= %= /= **= &= |= ^= >>= <<= /C7"Common Libs" __builtin__ __future__ __main__ aepack aetools aetypes aifc al anydbm applesingle atexit array asyncore asynchat audioop autoGIL AL AST base64 binascii binhex bisect bsddb buildtools bz2 BaseHTTPServer Bastion calendar cd cfmfile cgi cgitb chunk cmath cmd code codecs codeop collections colorsys commands compileall cookielib copy_reg cPickle cStringIO csv curses Carbon CGIHTTPServer ColorPicker Complex ConfigParser Cookie datetime dbhash decimal difflib dircache dircmp dis distutils dl doctest dospath dumbdbm dummy_thread dummy_threading DEVICE DocXMLRPCServer emacs email encodings errno exceptions EasyDialogs fcntl filecmp fileinput findertools fl flp fm fmt fnmatch formatter fpectl fpformat ftplib FL FrameWork gc gdbm gensuitemodule getopt getpass gettext gl glob gopherlib grep gzip GL heapq hmac hotshot htmlentitydefs htmllib httplib HTMLParser ic icopen ihooks imaplib imageop imghdr imp imputil inspect itertools jpeg keyword linecache locale lockfile logging mac macerrors macfs macostools macpath macresource macurl2path mailbox mailcap marshal md5 mhlib mimetools mimetypes mimify mmap multifile mutex math MacOS MimeWriter MiniAEFrame netrc new newdir ni nis nntplib nsremote ntpath nturl2path operator optparse os ossaudiodev parser pdb pgdb pickle pickletools pipes pkgutil platform poly popen2 poplib posixfile posixpath pprint profile pstats py_compile pyclbr pydoc pyexpat pythonprefs Para PixMapWrapper quietconsole quopri Queue rand random re regex regsub resource rexec rfc822 rgbimg rlcompleter robotparser rotor sched select sets sgmllib sha shelve shlex shutil signal site smtpd smtplib sndhdr snmp socket stat statcache statvfs string stringprep struct subprocess sunau symbol sys syslog ScrolledText SimpleHTTPServer SimpleXMLRPCServer StringIO SocketServer tabnanny tarfile tb telnetlib tempfile termios test textwrap thread threading time timeit toaiff token tokenize traceback tty turtle types tzparse TERMIOS Tix Tkinter unicodedata unittest urllib urllib2 urlparse user util uu UserDict UserList UserString videoreader warnings waste wave weakref webbrowser whatsound whichdb whrandom winsound xdrlib xml xmllib xmlpackage xmlrpclib zipfile zlib zmod /C8"Others" array cls fnmatch struct self
发表评论
-
Python and Ruby
2008-10-06 16:13 1612Python 和 Ruby 的相同点: 都强调语法 ... -
What's Pythonic?
2008-09-24 14:30 892If you're not willing to read E ... -
Feel Pythonic: The Zen of Python
2008-09-24 14:20 1056Let's feel about what "pyt ... -
Python 中使用 pyrex 生成 Linux 可执行文件
2008-08-15 14:30 10441这个问题是相当有意义的,如果有了比较好的方法,Pyth ... -
Python 模块之 threading: 在 Python 中使用多线程
2008-08-15 14:25 4146Python 是支持多线程的,并且是 native 的 ... -
Python 模块之 ConfigParser: 用 Python 解析配置文件
2008-08-15 14:23 4040在程序中使用配置文件来灵活的配置一些参数是一件很常见的 ... -
Python 中怎么 copy 文件和目录
2008-08-15 14:20 2586>>> import shutil > ... -
Python 中使用 FTP
2008-08-15 14:19 1794import ftplib ftp = ftplib.FTP ... -
Python 中列出目录中所有文件的方法
2008-08-15 14:17 29388import string, os, sys dir = ' ... -
用 C 为 Python 写个简单的模块
2008-08-15 14:09 1850Python 语言是支持用 C 来 ... -
Amusing Python 2: range/xrange
2008-08-15 14:03 2478这两个基本上都是在循环的时候用。 for i in rang ... -
在 Python 代码中进行自动测试
2008-08-15 13:49 1312Python 有一个叫 doctest 的模块,很有意思,它可 ... -
Python2.5 中的新类型:set (集合)
2008-08-15 13:46 1609Python2.5 中新增加了集合内容,让我想起了初中数学。看 ... -
Amazing Python 3: "@"
2008-08-15 13:44 9791. This an interesting usage th ... -
用 Python 下载网页,超级简单!
2008-08-15 13:42 1881from urllib import urlopen web ... -
Amusing Python 1: "*"
2008-07-25 15:15 844Take a look at the three differ ... -
Amazing Python 2: "exec/eval/repr"
2008-07-25 14:35 13521. exec: Executing comm ... -
Amazing Python 1: "yield"
2008-07-23 11:37 889"yield" is used for G ... -
[Copy] 有限状态自动机(FSM)的简单实现
2007-12-12 11:17 3914Sometimes, a quite simple conce ... -
Bewildering service names of python application on maemo
2007-12-07 15:51 1152A simple file structure of pyth ...
相关推荐
This condensed code and syntax reference presents the Python language in a well-organized format designed to be used time and again. You won’t find jargon, bloated samples, case studies, or history ...
The third edition of this practical book provides a quick reference to the language—including Python 3.5, 2.7, and highlights of 3.6—commonly used areas of its vast standard library, and some of ...
syntax_sugar_python, 添加一些反 Pythonic syntatic糖到 python的库 syntax_sugar 这个库向 python 添加了一些反python的"句法糖"。注意:这只是一个实验 Prototype,展示了 python 中操作符重载的一些可能。 仅在 ...
MEL Syntax Highlight File for UltraEdit
Learn Python in 24 Hours by Sunny Chandat ... Experienced programmers in any other language can pick up Python very quickly, and beginners find the clean syntax and indentation structure easy to learn.
It not only covers the technical aspects of using Python in finance but also provides insights into the broader context of why Python has become so important in the financial industry. With its focus...
You will find yourself pleasantly surprised to see how easy it is to concentrate on the solution to the problem rather than the syntax and structure of the language you are programming in. ...
`invalid syntax` 是一个 Python 的语法错误,通常发生在 Python 解释器无法理解代码时。 这个错误会出现在很多不同的情况下,例如: 1. 括号、引号、分号等常见拼写错误。 2. 少了或多了任何必要的冒号。 3. 函数...
关于Python3中Asyncio库的详细介绍与示例: You’ll learn why Asyncio offers a safer alternative to preemptive multitasking (threading) and how this API provides a simple way to support thousands of ...
ultra editor syntax highlight wordfile for python
Learn the basics of ethical hacking and gain insights into the logic, algorithms, and syntax of Python. This book will set you up with a foundation that will help you understand the advanced concepts ...
Using practical code examples, Chun introduces all the fundamentals of Python programming: syntax, objects and memory management, data types, operators, files and I/O, functions, generators, error ...
In contrast to other popular languages such as C, C++ , Java, and C#, Python strives to provide a simple but powerful syntax. Python is used for software development at companies and organizations ...
Daniel Arbuckle's Mastering Python ...Take advantage of Python's metaprogramming and programmable syntax features Get acquainted with the concepts behind reactive programming and RxPy