代码之家  ›  专栏  ›  技术社区  ›  Ratha

如何在MAC中运行Twisted(python)程序?

  •  0
  • Ratha  · 技术社区  · 8 年前

    我已经在我的MAC电脑上安装了Twisted。

       $ python
    Python 2.7.10 (default, Oct 23 2015, 18:05:06) 
    [GCC 4.2.1 Compatible Apple LLVM 7.0.0 (clang-700.0.59.5)] on darwin
    Type "help", "copyright", "credits" or "license" for more information.
    >>> import twisted
    >>> twisted.__version__
    '13.1.0'
    >>> import OpenSSL
    >>> import twisted.internet.ssl
    >>> twisted.internet.ssl.SSL
    <module 'OpenSSL.SSL' from '/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/OpenSSL/SSL.so'>
    >>> 
    

    test.tac

    我如何在MAC中运行它?我可以把它作为python脚本运行吗?

    p、 我对python完全陌生

    1 回复  |  直到 8 年前
        1
  •  0
  •   Anurag Choudhary    8 年前

    如果这是Python脚本,那么可以在MAC上运行。

    还要查看Twisted Documentation页面吗? http://twistedmatrix.com/documents/current/core/howto/index.html