愤怒中的小草

博客园 首页 新随笔 联系 订阅 管理

随笔分类 -  python进阶

摘要:https://blog.csdn.net/LeonTom/article/details/81289326 阅读全文
posted @ 2019-04-09 11:42 愤怒中的小草 阅读(149) 评论(0) 推荐(0)

摘要:弥补网上python关联微服务空白,结合多个pythonweb框架实践,找到一个可行的方案python加入到eureka,实现java和python的完美结合 # coding:utf-8 import tornado.httpserver import tornado.ioloop import tornado.options from tornado.web import RequestHa... 阅读全文
posted @ 2019-02-27 13:34 愤怒中的小草 阅读(2469) 评论(0) 推荐(1)

摘要:""""import osimport time#fork只用于linux中pid = os.fork()print("hello")if pid == 0: print("子进程{},父进程是{}".format(os.getpid(),os.getppid()))else: print("父进程 阅读全文
posted @ 2019-02-22 23:37 愤怒中的小草 阅读(185) 评论(0) 推荐(0)

摘要:import timefrom concurrent.futures import ThreadPoolExecutor,as_completedfrom concurrent.futures import ProcessPoolExecutor#多进程编程#耗CPU的操作,用多进程编程;对于IO操 阅读全文
posted @ 2019-02-22 22:57 愤怒中的小草 阅读(190) 评论(0) 推荐(0)

摘要:由于python提供的服务没有加入到注册中心,没有办法实现高可用现将python加入到注册中心实现高可用以下是基础样例,具体功能待完善 # coding:utf-8 import tornado.httpserver import tornado.ioloop import tornado.opti 阅读全文
posted @ 2019-02-13 20:28 愤怒中的小草 阅读(1834) 评论(0) 推荐(0)