在Python 2.7.4的包中,当你去的时候Lib -> email -> errors.py,模块中有一些有趣的东西.
# Copyright (C) 2001-2006 Python Software Foundation
# Author: Barry Warsaw
# Contact: email-sig@python.org
"""email package exception classes."""
class MessageError(Exception):
"""Base class for errors in the email package."""
class MessageParseError(MessageError):
"""Base class for message parsing errors."""
class HeaderParseError(MessageParseError):
"""Error while parsing headers."""
class BoundaryError(MessageParseError):
"""Couldn't find terminating boundary."""
class MultipartConversionError(MessageError, TypeError):
"""Conversion to a multipart is prohibited."""
class CharsetError(MessageError):
"""An illegal charset was given."""
# These are parsing defects which the parser …Run Code Online (Sandbox Code Playgroud) 有什么办法可以看一下源代码gympy吗?具体来说,gmpy2.is_prime.
我试过各种链接
我找不到任何地方.
我已经下载了gmpy2,并在我的本地驱动器上进行了检查,但文件扩展名为.pyd.当我打开它(在记事本中)时,以下是我看到的前几行 -
MZ ÿÿ ¸ @ ð º ´ Í!¸LÍ!This program cannot be run in DOS mode.
Run Code Online (Sandbox Code Playgroud)
剩下的就是胡言乱语.
我想写一个非常快速的素数检查器,它是迄今为止遇到的最好的任何人都可以告诉我如何获得源代码?或者也许链接到其他一些快速检查者的源代码(或讨论)?