摘要:https://blog.csdn.net/LeonTom/article/details/81289326
阅读全文
随笔分类 - python进阶
摘要:弥补网上python关联微服务空白,结合多个pythonweb框架实践,找到一个可行的方案python加入到eureka,实现java和python的完美结合 # coding:utf-8 import tornado.httpserver import tornado.ioloop import tornado.options from tornado.web import RequestHa...
阅读全文
摘要:""""import osimport time#fork只用于linux中pid = os.fork()print("hello")if pid == 0: print("子进程{},父进程是{}".format(os.getpid(),os.getppid()))else: print("父进程
阅读全文
摘要:import timefrom concurrent.futures import ThreadPoolExecutor,as_completedfrom concurrent.futures import ProcessPoolExecutor#多进程编程#耗CPU的操作,用多进程编程;对于IO操
阅读全文
摘要:由于python提供的服务没有加入到注册中心,没有办法实现高可用现将python加入到注册中心实现高可用以下是基础样例,具体功能待完善 # coding:utf-8 import tornado.httpserver import tornado.ioloop import tornado.opti
阅读全文
浙公网安备 33010602011771号