随笔分类 -  python

摘要:client.py encoding: utf-8 """ @software: PyCharm @Date : 2021/12/1 14:55 @Author : lizhiyuan@hesaitech.com @FileName: client_.PY description: """ impo 阅读全文
posted @ 2022-07-13 11:30 隐士无双 阅读(63) 评论(0) 推荐(0)
摘要:#coding:utf-8 import os import codecs def ReadFile(filePath, encoding): with codecs.open(filePath, "r", encoding=encoding) as f: return f.read() def W 阅读全文
posted @ 2020-05-13 18:41 隐士无双 阅读(322) 评论(0) 推荐(0)
摘要:python2基于SimpleHTTPServer创建http服务 首先,在linux服务器上面检查一下自己的python版本;如: 1 2 [root@tx_db1 ~]# python -V Python 2.7.13 一、在2.7的环境下,使用如下命令; 1 2 [root@tx_db1 ac 阅读全文
posted @ 2020-03-19 16:33 隐士无双 阅读(1593) 评论(0) 推荐(0)