python工具

启动一个下载服务器

python -m SimpleHTTPServer

json格式化工具

[root@localhost bin]# echo '{"job": "developer", "name": "lmx", "sex": "male"}' | python -m json.tool
{
    "job": "developer",
    "name": "lmx",
    "sex": "male"
}

验证第三方库是否正确安装

[gaoquan@localhost ~]$ python -c "import ansible"
Traceback (most recent call last):
  File "<string>", line 1, in <module>
ImportError: No module named ansible
展开阅读全文

没有更多推荐了,返回首页