随笔分类 - python
摘要:https://blog.csdn.net/daiyu__zz/article/details/81912018 python3.x中通过threading模块创建新的线程有两种方法:一种是通过threading.Thread(Target=executable Method)-即传递给Thread
阅读全文
摘要:https://www.cnblogs.com/relex/p/10953912.html 1、不等于<>比较运算符,python3不识别,pyhon2.7中!=和<>都能运行。 2、print函数的使用,python3必须加括号,python2加不加都行。 3、py2 的默认编码是ASCII,py
阅读全文
摘要:def log(func): #将原函数对象的指定属性复制给包装函数对象, 默认有 module、name、doc,或者通过参数选择 @functools.wraps(func) def wrapper(*args, **kwargs): print('call %s():' % func.__na
阅读全文
摘要:切片操作:对list,tuple元素进行截取操作,非常简便。L[0:3],L[:3] 截取前3个元素。L[1:3] 从1开始截取2个元素出来。L[-1] 取倒数第一个元素出来。L[-10] 取后10个数L[10:20] 取前11-20个数L[:10:2] 取前10个数,每两个取一个L[::5] 所有
阅读全文
摘要:#调用jar包 def getJar(arg1,arg2): jarpath = os.path.join(os.path.abspath('.'), 'tools/GetTest-1.0-SNAPSHOT.jar') print(jarpath) if not jpype.isJVMStarted
阅读全文
摘要:1.django.core.exceptions.ImproperlyConfigured: mysqlclient 1.3.13 or newer is required; you have 0.9.3. 修改/usr/local/lib/python3.5/dist-packages/djang
阅读全文
摘要:https://blog.csdn.net/weixin_43789195/article/details/87469096 https://blog.csdn.net/qq_42642945/article/details/89789524 if _name_ == '_main_'的意思是: 当
阅读全文
摘要:test session starts platform darwin -- Python 3.7.3, pytest-4.4.0, py-1.8.0, pluggy-0.9.0rootdir: /Users/likuanrong/PycharmProjects/workplugins: metad
阅读全文
摘要:test session starts platform darwin -- Python 3.7.3, pytest-4.4.0, py-1.8.0, pluggy-0.9.0rootdir: /Users/likuanrong/PycharmProjects/workplugins: metad
阅读全文
摘要:https://wiki.python.org/moin/PythonTestingToolsTaxonomy mac pip安装 https://blog.csdn.net/ywj_486/article/details/80678720
阅读全文
摘要:C:\Users\lkr\PycharmProjects\lianxi\venv\Scripts\python.exe C:/Users/lkr/PycharmProjects/lianxi/test.py[0, 1, 4, 9][0, 1, 4, 9, 0, 1, 4][3, 2, 1, 0, 1
阅读全文
摘要:Beautiful is better than ugly.Explicit(明确的,清楚的) is better than implicit. Simple is better than complex.Complex(复杂的;合成的) is better than complicated(难懂的
阅读全文
摘要:1.Python下载 https://www.python.org/downloads/ 2.安装方法 https://www.cnblogs.com/weven/p/7252917.html 3.运行 第一种:python D:\workplace\python\hello.py 第二种:py D
阅读全文

浙公网安备 33010602011771号