码迷,mamicode.com
首页 >  
搜索关键字:recent    ( 1003个结果
Python函数及操作
博文结构自定义函数变量作用域Python内建函数一.函数Python中的函数都是语句和表达式的集合。函数的用法并没有限制,使用方式就像Python中其他值一样,对于重复使用的代码,需要编写为自定义函数以便于重复使用。函数可以分为无参函数和带参函数1.无参函数自定义无参函数并不复杂,语法格式如下:def函数名称():代码块return[表达式]案例:defadd():\\定义函数op1=10op2=
分类:编程语言   时间:2019-12-06 21:12:28    阅读次数:94
Android如何屏蔽home键和recent键
最近在做一个项目的时候,进入一个 Activity后需要暂时屏蔽掉home键和recent键(back键可以在onKeyDown里面处理),网上找了半天,都是针对旧版本android的方法,android5.0以后就不能生效了。 看了半天的SDK和资料,发现有一种方法可以暂时屏蔽掉home键和rec ...
分类:移动开发   时间:2019-12-05 13:28:50    阅读次数:377
FastDFS--storage文件上传和下载问题
使用FastDFS--storage文件上传出现如下bug: >>> ret = client.upload_by_filename('/home/python/Desktop/1.jpg') Traceback (most recent call last): File "<console>", ...
分类:Web程序   时间:2019-12-03 23:29:42    阅读次数:504
接触python的第2天:了解变量和打印
1变量不用定义类型, 可以直接赋值 2 变量类型可以直接用type显示 3 print 可以打印数值,里面要有‘’ 或 “” 错误示范: >>> print(hello)Traceback (most recent call last): File "<pyshell#11>", line 1, i ...
分类:编程语言   时间:2019-12-03 20:14:32    阅读次数:132
Error Permission denied when running brew cleanup
Error Permission denied when running brew cleanup When I try to run `brew cleanup` I get: Warning: Skipping atk: most recent version 2.34.1 not instal ...
分类:其他好文   时间:2019-12-01 09:54:11    阅读次数:542
python爬虫错误:http.client.HTTPException: got more than 100 headers的解决方法
python爬虫错误:http.client.HTTPException: got more than 100 headers的解决方法 Traceback (most recent call last): File "C:\Users\Jonariguez\AppData\Roaming\Pyth ...
分类:编程语言   时间:2019-11-27 10:46:35    阅读次数:144
requests.exceptions.SSLError: HTTPSConnectionPool报错解决方案
运行脚本报错: Traceback (most recent call last): File "F:/Interface_Study/study_requests/auto_get_post.py", line 24, in <module> res = Calendar_Query().requ ...
分类:Web程序   时间:2019-11-25 18:49:59    阅读次数:159
numpy和matplotlib下载中出现的问题
在安装numpy的时候遇到如下所示的错误:经过几个小时的查找,最终发现是pygame的路径不对导致。将pygame的具体路径加上后,问题解决。实施如下:得出一个结论:路径很重要,千万得小心哦。 报错为:traceback(most recent call last)......line 125... ...
分类:其他好文   时间:2019-11-25 09:41:11    阅读次数:96
描述器 descriptors
描述器的表现 用到3个魔术方法:__get__(),__set__(),__delete__(),用到这三个方法其一的类就是描述器。 方法签名如下: object.__get__(self,instance,owner),self是实例本身,instance是owner的实例。 object.__s ...
分类:其他好文   时间:2019-11-22 00:32:12    阅读次数:73
UnicodeDecodeError: 'gbk' codec can't decode byte 0xab in position 2411: illegal multibyte sequence错误解决方案
|、第一步放bug Traceback (most recent call last): File "c:\programdata\anaconda3\envs\sql\lib\runpy.py", line 193, in _run_module_as_main "__main__", mod_s ...
分类:其他好文   时间:2019-11-19 13:46:32    阅读次数:83
1003条   上一页 1 ... 11 12 13 14 15 ... 101 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!