12 2018 档案
摘要:安装工具:Pycharm 专业版2017.3PyQT5python3 pyqt5-tools 设置扩展工具的参数找到setting->tools->external tools,点击加号新建工具 先加qtdesinger的参数,program:E:\python_study\qtstudy\venv
阅读全文
摘要:mysql Access denied for user \'root\'@\'localhost\'”解决办法总结,下面我们对常见的出现的一些错误代码进行分析并给出解决办法,有需要的朋友可参考一下。 错误代码 1045 Access denied for user 'root'@'localhos
阅读全文
摘要:Django中默认支持Session,其内部提供了5种类型的Session供开发者使用: ·数据库(默认) ·缓存 ·文件 ·缓存+数据库 ·加密cookie (1)数据库中的Session (2)缓存Session (3)文件Session (4)缓存+数据库Session (5)加密Sessio
阅读全文
摘要:1 下载 https://pan.baidu.com/s/1mcQM8CLUnweY02ahKEr4PQ 并将 JetbrainsCrack-release-enc.jar 放置到 pycharm安装目录的\bin目录下(位置可随意,只要配置文件填写相对应的路径)。 2 在 Pycharm安装目录的
阅读全文
摘要:https://www.microsoft.com/en-us/download/details.aspx?id=40784 装之 from : https://answers.microsoft.com/en-us/windows/forum/windows_7-windows_install/m
阅读全文
摘要:2RRJMBXW33-eyJsaWNlbnNlSWQiOiIyUlJKTUJYVzMzIiwibGljZW5zZWVOYW1lIjoi5b285bK4IHNvZnR3YXJlMiIsImFzc2lnbmVlTmFtZSI6IiIsImFzc2lnbmVlRW1haWwiOiIiLCJsaWNlbnNlUmVzdHJpY3Rpb24iOiJGb3IgZWR1Y2F0aW9uYWwgdXNlIG9u...
阅读全文
摘要:https://blog.csdn.net/a1368783069/article/details/52137417
阅读全文
摘要:# https://segmentfault.com/q/1010000010559838 import asyncio import threading import random async def fn(name,qu): while True: print(name,"ready to work") r=asyncio.run_coroutin...
阅读全文
摘要:from asyncio import Queue,sleep import asyncio from threading import Thread import time qu=Queue() #put async def putQ(): global qu print('start put') i=1 while True: print(...
阅读全文
摘要:https://www.lfd.uci.edu/~gohlke/pythonlibs/
阅读全文
摘要:import asyncio from threading import Thread import time print('main start:',time.time()) async def start(i): print(i, time.time()) await asyncio.sleep(i) b=run(i) if b is not None: ...
阅读全文
摘要:import asyncio from threading import Thread import time print('main start:',time.time()) async def download(i): print(i, time.time()) await asyncio.sleep(i) b=linkextractor(i) if b ...
阅读全文
摘要:https://www.jianshu.com/p/0efdc952e8ca
阅读全文
摘要:import asyncio from threading import Thread import time now = lambda: time.time() print('start',now()) def start_loop(loop): asyncio.set_event_loop(loop) loop.run_forever() async def do_so...
阅读全文
摘要:close的方法主要是关闭子生成器,需要注意的有4点: 1.如果生成器close后,还继续next,会报错StopIteration [图片] 2.如果我捕获了异常,将GeneratorExit处理了,之后还有一个yield,这时候close之后,还要next会报错RuntimeError异常 3.
阅读全文
摘要:作为一名做为在前端死缠烂打6年并且懒到不行的攻城士,这几年我还是阅过很多同门从知名到很知名的各种前端框架,本来想拿15-20个框架来分享一下,但在跟几个前辈讨教写文章的技巧时果断被无情的打击了,所以这里我还是低调的只拿出10个框架来个大锅乱炖来简单介绍,凑够字数也就全剧终了。 原本写这篇文章想围绕着
阅读全文
摘要:import paramiko #建立连接,获取sftp句柄 def sftp_connect(username,password,host,port=22): client = None sftp = None try: client = paramiko.Transport((host,port
阅读全文