摘要:
def param(dict): def decorater1(func): def make_decorater(x): print('现在开始装饰') x = x + 'vvv' func(x) print('现在结束装饰') return dict['a'] return make_decor 阅读全文
摘要:
更新了一版pycharm,然后死活打不开了。 尝试命令行启动 cd /Applications/PyCharm.app/Contents/MacOS -bash-3.2$ ./pycharm 发现报错和一个插件有关 ERROR - llij.ide.plugins.PluginManager - c 阅读全文
摘要:
1.nmp install express -g环境配置报错 npm ERR! code UNABLE_TO_VERIFY_LEAF_SIGNATUREnpm ERR! errno UNABLE_TO_VERIFY_LEAF_SIGNATUREnpm ERR! request to https:// 阅读全文
摘要:
pip insall pipenv 安装pipenv的时候报错,错误提示: ERROR: Cannot uninstall 'filelock'. It is a distutils installed project and thus we cannot accurately determine 阅读全文
摘要:
使用Python做自动化需要考虑怎么做断言,怎么管理你的自动化案例。 最最常见的是使用Python的unittest模块,建立Testcase实例就可以涵盖测试前准备环境的搭建(setUp),执行测试代码 (run),以及测试后环境的还原(tearDown),unittest模块包含了assert方 阅读全文
摘要:
cd /usr/share/applications vim Pycharm.desktop 添加如下 #!/usr/bin/env xdj-open [Desktop Entry] Encoding=UTF-8 Name=Pycharm Comment=pycharm-2019.1.3 Exec= 阅读全文
摘要:
1.包含的聚合函数 Avg计算平均数 Max计算最大值 Min计算最小值 Count对象计数 Sum计算和 2.用法 获取tag数目 或 求阅读量之和 阅读全文
摘要:
原因django安装的包不在python的默认路径下。 方法: 1.查看python路径 2.找到pip安装的路径 3.加入PATHONPATH [root@localhost ~]# PYTHONPATH="/usr/local/lib/python3.6/site-packages"[root@ 阅读全文
摘要:
需要制定下载源,方法如下: pip install -i https://pypi.douban.com/simple 【需要安装的模块】 阅读全文
摘要:
1.String对象split(),replace(),match(),search()方法。 2.正则表达式通过js内置对象RegExp使用,\表示正则表达式的开始和结束。 var myRegExp = new RegExp("\\b'|'\\b"); eg1. var myRegExp = /w 阅读全文