摘要:
https://www.jianshu.com/p/ab13a75354ab 阅读全文
摘要:
import threading import time num = 0 #全局变量多个线程可以读写,传递数据 mutex = threading.Lock() #创建一个锁 class Mythread(threading.Thread): def run(self): global num wi 阅读全文
摘要:
https://www.jianshu.com/p/1080014a234f(跨域配置) 问题现象 Access to XMLHttpRequest at 'https://api.gstianfu.com/public/fund/announce_detail?aid=654247428725' 阅读全文
摘要:
类适配器模式,缺单是如果有多个类需要编写多个适配器类 from abc import ABCMeta, abstractmethod # 目标接口 class Payment(metaclass=ABCMeta): @abstractmethod def pay(self, money): pass 阅读全文