02 2022 档案

摘要:# -*- coding: utf-8 -*- from docx import Document import os import shutil import traceback def parseFile(file): content = '' file_name = file.split(". 阅读全文
posted @ 2022-02-24 10:39 凉城 阅读(44) 评论(0) 推荐(0) 编辑
摘要:问题原因: Python在进行编码方式之间的转换时,会将 unicode 作为“中间编码”,但 unicode 最大只有128那么长,所以这里当尝试将 ascii 编码字符串转换成"中间编码" unicode 时由于超出了其范围,就报出了如上错误。 解决办法 将Python的默认编码方式修改为utf 阅读全文
posted @ 2022-02-22 18:02 凉城 阅读(69) 评论(0) 推荐(0) 编辑
摘要:1、使用date命令查询当前时间,发现时间不准确;计划使用ntpupdate命令同步时间 2、安装ntp服务: yum install ntp 使用ntpdate同步时间报错: ntpdate[13040]: adjust time server ** offset -0.017465 sec 报错 阅读全文
posted @ 2022-02-17 16:55 凉城 阅读(134) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示