摘要: with open('name.txt', 'r+') as file: lines = file.readlines() file.seek(0) # 将文件指针移回文件开头 file.truncate() # 清空文件内容 for line in lines: new_line = '"' + 阅读全文
posted @ 2023-04-26 14:32 LCarrey 阅读(87) 评论(0) 推荐(0) 编辑
摘要: // ==UserScript== // @name 延时跳转页面示例 // @description 自动延时跳转到指定的一系列页面,页面跳转时间为2秒 // @include * // ==/UserScript== // 指定要跳转的页面 URL 列表 var urls = ["https:/ 阅读全文
posted @ 2023-04-26 14:31 LCarrey 阅读(758) 评论(0) 推荐(0) 编辑