{"id":8620,"date":"2020-08-28T13:16:27","date_gmt":"2020-08-28T05:16:27","guid":{"rendered":"https:\/\/www.linuxcool.com\/?p=8620"},"modified":"2020-08-28T13:47:46","modified_gmt":"2020-08-28T05:47:46","slug":"python","status":"publish","type":"post","link":"https:\/\/www.linuxcool.com\/python","title":{"rendered":"python\u547d\u4ee4 – \u89e3\u91ca\u5668\u3001\u4ea4\u4e92\u5f0f\u3001\u9762\u5411\u5bf9\u8c61\u7684\u7f16\u7a0b\u8bed\u8a00"},"content":{"rendered":"\n
Python\u662f\u4e00\u79cd\u89e3\u91ca\u578b\u7684\u3001\u4ea4\u4e92\u5f0f\u7684\u3001\u9762\u5411\u5bf9\u8c61\u7684\u7f16\u7a0b\u8bed\u8a00\uff0c\u5b83\u7ed3\u5408\u4e86\u975e\u51e1\u7684\u529f\u80fd\u548c\u975e\u5e38\u6e05\u6670\u7684\u8bed\u6cd5\u3002Python Library Reference\u8bb0\u5f55\u4e86\u5185\u7f6e\u7684\u548c\u6807\u51c6\u7684\u7c7b\u578b\u3001\u5e38\u91cf\u3001\u51fd\u6570\u548c\u6a21\u5757\u3002<\/p>\n\n\n\n
\u8bed\u6cd5\u683c\u5f0f\uff1a<\/strong>python [\u53c2\u6570]<\/p>\n\n\n\n \u5e38\u7528\u53c2\u6570\uff1a<\/strong><\/p>\n\n\n\n \u53c2\u8003\u5b9e\u4f8b<\/strong><\/p>\n\n\n\n \u76f4\u63a5\u8fd0\u884cpython\u8bed\u53e5\uff1a<\/p>\n\n\n\n \u67e5\u770bpython\u6240\u6709\u6a21\u5757\u5e94\u7528\u7684\u4fe1\u606f\uff1a<\/p>\n\n\n\n \u8fd0\u884c\u5b8cpython\u811a\u672c\u6587\u4ef6\u4ee5\u540e\u6253\u5f00\u4e00\u4e2apython\u73af\u5883\uff1a<\/p>\n\n\n\n \u5c06\u6a21\u5757\u6309\u7167\u811a\u672c\u6267\u884c\uff0c\u5b9e\u73b0\u4e00\u4e2a\u7b80\u5355\u7684\u4e0b\u8f7d\u670d\u52a1\u5668\uff1a<\/p>\n\n\n\n Python\u662f\u4e00\u79cd\u89e3\u91ca\u578b\u7684\u3001\u4ea4\u4e92\u5f0f\u7684\u3001\u9762\u5411\u5bf9\u8c61\u7684\u7f16\u7a0b\u8bed\u8a00\uff0c\u5b83\u7ed3\u5408\u4e86\u975e\u51e1\u7684\u529f\u80fd\u548c\u975e\u5e38\u6e05\u6670\u7684\u8bed\u6cd5\u3002Python L […]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":[],"categories":[11],"tags":[],"_links":{"self":[{"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/posts\/8620"}],"collection":[{"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/comments?post=8620"}],"version-history":[{"count":2,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/posts\/8620\/revisions"}],"predecessor-version":[{"id":8624,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/posts\/8620\/revisions\/8624"}],"wp:attachment":[{"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/media?parent=8620"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/categories?post=8620"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/tags?post=8620"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}-c<\/td> \u76f4\u63a5\u8fd0\u884cpython\u8bed\u53e5<\/td><\/tr> -v<\/td> \u4f1a\u8f93\u51fa\u6bcf\u4e00\u4e2a\u6a21\u5757\u5f15\u7528\u4fe1\u606f<\/td><\/tr> -i<\/td> \u8fd0\u884c\u5b8cpython\u811a\u672c\u6587\u4ef6\u4ee5\u540e\u6253\u5f00\u4e00\u4e2apython\u73af\u5883<\/td><\/tr> -m<\/td> \u5c06\u6a21\u5757\u6309\u7167\u811a\u672c\u6267\u884c<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n [root@linuxcool ~]# python -c \"print 'Hello world'\"<\/pre>\n\n\n\n
[root@linuxcool ~]# python -v<\/pre>\n\n\n\n
[root@linuxcool ~]# python -i main.py<\/pre>\n\n\n\n
[root@linuxcool ~]# python -m SimpleHTTPServer 80<\/pre>\n","protected":false},"excerpt":{"rendered":"