如何用python脚本在每个引入的.css文件加入时间函数

qq_32386405 2018-01-17 11:16:55
加入前显示
<link rel="stylesheet" href="css/main.css">
<link rel="stylesheet" href="css/style.css">
<link rel="stylesheet" type="text/css" href="css/index.css">
运行python 脚本后显示为
<link rel="stylesheet" href="css/main.css?t=20180117">
<link rel="stylesheet" href="css/style.css?t=20180117">
<link rel="stylesheet" type="text/css" href="css/index.css?t=20180117">
...全文
195 回复 打赏 收藏 转发到动态 举报
写回复
用AI写文章
回复
切换为时间正序
请发表友善的回复…
发表回复

10,607

社区成员

发帖
与我相关
我的任务
社区描述
Web 开发 其他
社区管理员
  • 其他
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧