如何在 MAC 中 运行 Twisted (python) 程序?
How to run a Twisted (python) program in MAC?
我已经在 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.s:我对 python
完全陌生
如果那是 Python 脚本而不是,您可以 运行 它在您的 MAC 上。
还要查看 Twisted 文档页面?
http://twistedmatrix.com/documents/current/core/howto/index.html
我已经在 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.s:我对 python
完全陌生如果那是 Python 脚本而不是,您可以 运行 它在您的 MAC 上。
还要查看 Twisted 文档页面? http://twistedmatrix.com/documents/current/core/howto/index.html