随笔分类 -  Python

摘要:# 持久加速 mkdir -p ~/.pip # 清华 source cat << EOF > ~/.pip/pip.conf [global] index-url = https://pypi.tuna.tsinghua.edu.cn/simple [install] trusted-host = 阅读全文
posted @ 2023-10-31 20:04 Rocky_940120 阅读(34) 评论(0) 推荐(0) 编辑
摘要:# 获取最近几天的时间 import datetime import time import os # 定义开始时间,并将时间格式转换成字符串格式 # strftime 函数用于格式化时间,返回以可读字符串表示的当地时间,格式由参数 format 决定。 begin_date = datetime. 阅读全文
posted @ 2022-05-07 13:08 Rocky_940120 阅读(93) 评论(0) 推荐(0) 编辑

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