推荐学习书目
Learn Python the Hard Way
Python Sites
PyPI - Python Package Index
http://diveintopython.org/toc/index.html
Pocoo
值得关注的项目
PyPy
Celery
Jinja2
Read the Docs
gevent
pyenv
virtualenv
Stackless Python
Beautiful Soup
结巴中文分词
Green Unicorn
Sentry
Shovel
Pyflakes
pytest
Python 编程
pep8 Checker
Styles
PEP 8
Google Python Style Guide
Code Style from The Hitchhiker's Guide
617450941
V2EX  ›  Python

python 怎么开一个 api 接口给 php post json 的方式调用 获取 linux 的 cpu 负载 网速的信息 求示例代码

  •  
  •   617450941 · Oct 21, 2015 · 3288 views
    This topic created in 3882 days ago, the information mentioned may be changed or developed.
    3 replies    2015-10-29 23:49:26 +08:00
    just1
        1
    just1  
       Oct 21, 2015 via Android
    我是这样的:
    <?php
    echo shell_exec(python xxxx.py);
    ?>
    617450941
        2
    617450941  
    OP
       Oct 21, 2015
    这个要是多节点就不行了 比如我有多台 linux 服务器
    huson
        3
    huson  
       Oct 29, 2015
    写个 python 程序 记录 client 机器数据 发送到 server , server 存到数据库 ,然后 php 去读数据库
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   2939 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 36ms · UTC 12:47 · PVG 20:47 · LAX 05:47 · JFK 08:47
    ♥ Do have faith in what you're doing.