摘要:
在视图类中可通过self.request来获取request对象,是因为源码中的dispatch将其封装到类中 def dispatch(self, request, *args, **kwargs): """ `.dispatch()` is pretty much the same as Dja 阅读全文
摘要:
卸载旧版本安装新版本mysql时,出现了以下错误 TIMESTAMP with implicit DEFAULT value is deprecated. Please use --explicit_defaults_for_timestamp server option (see document 阅读全文
摘要:
1.通过函数 from multiprocessing import Process def func(a,b,c): print(a,b,c) if __name__ == '__main__': #windows系统要加这句话,而linux不需要。原因是linux基于linux-fork,会把父 阅读全文
摘要:
#server端import socket from multiprocessing import Process def talk(conn): while True: msg = conn.recv(1024).decode('utf-8') ret = msg.upper().encode(' 阅读全文