class Test: def __init__(self): self.process = None def start(self): self.process = multiprocessing.Process(target=task, args=(2,)) self.process.daemon = True self.process.start() print(self.process, 'start') def terminate(self): self.process.terminate() print(self.process)
可能会第一时间想到用调试模式打开页面元素,其实这也是不行的。页面会充斥着各种标签,无法复制到有用信息。这应该是markdown 转 html 导致的。
这时候,阅读模式就能够完美解决代码复制的问题。如果使用的是edge浏览器,只用在页面url前面增加前缀“read:”,即可进入阅读模式。这时候页面上所有的信息都可以自由复制了。