遇事不决,可问春风,春风不语,谨遵本心|

布都御魂

园龄:3年9个月粉丝:2关注:1

07 2021 档案

输出汉字报错
摘要:import locale locale.setlocale(locale.LC_CTYPE, 'chinese')
27
0
0
IndentationError: unindent does not match any outer indentation level
摘要:1. 代码格式未对齐,找到提示错误的行,检查是否对齐 2. 是否存在特殊字符
175
0
0
粘贴复制出错
摘要:错误描述:Cannot open clipboard:拒绝访问。 解决办法:等一会就好了
157
0
0
mysql密码忘记
摘要:1:net stop mysql2:net start mysql 3:mysql -uroot -p,直接回车 4:use mysql 5:ALTER USER 'root'@'localhost' IDENTIFIED BY '123456';
37
0
0
mysql服务打开就关闭
摘要:只需注释掉my.ini中的skip-grant-tables即可
52
0
0
pymysql.err.ProgrammingError: execute() first
摘要:解决办法:先执行sql语句
1946
0
0
pymysql.err.OperationalError: (1364, "Field 'ir_md5' doesn't have a default value")
摘要:ir_md5设置成空,否则就应该加默认值
270
0
0
Python+Excel:xlrd.biffh.XLRDError: Excel xlsx file; not supported
摘要:一:xlrd过高,卸载旧版本重新安装1.2.01、打开terminal2、卸载现在的版本 pip uninstall xlrd3、安装低本班xlrd:pip install xlrd==1.2.0 二:excel文件的版本过高,复制源文件,另存为:xls格式1、在报错的excel文件,所在的文件夹里
530
0
0
AttributeError: module 'xlrd' has no attribute 'open_workbook'
摘要:解决办法: 1.查看单词是否拼错 2.查看模块是否下载
1354
0
0
pandas读取文件报错
摘要:错误信息:ParserError: Error tokenizing data 解决办法:在read_csv()里加上sep='\n',这里是分隔符,我的是空格
77
0
0
启动mysql服务
摘要:1.下载免安装版本 2.解压到喜欢的文件夹 3.把文件夹的bin路径配置在环境变量里 4.新建my.ini文件,填入以下内容 [mysql]# 设置mysql客户端默认字符集default-character-set=utf8 [mysqld]#设置3306端口port = 3306 # 设置mys
99
0
0
请求头报错
摘要:错误信息:FakeUserAgentError('Maximum amount of retries reached') 解决办法: def headers(): location = os.getcwd() + '/fake_useragent.json' ua = fake_useragent.
313
0
0
没模块 mysqldb
摘要:python2:mysqldb python3:mysqlclient
21
0
0
Excel出现E
摘要:EXCEL表格 显示 超长 数字 E+ 变成 文本格式,数字全部显示选中整列,数据--》分列--》固定列宽度(第二项)--》--》下一步--》下一步--》文本--》完成 搞定 对于身份证号或者电话号码或者准考证号等纯数字超长格式很有效果。 另外还有一些前导0的数字填充,可以使用特殊格式
321
0
0
远端控制工具
摘要:软件:todesk,向日葵 方法:双方都安上相应软件, 告诉对方识别码,验证码(向日葵) 告诉对方设备代码,临时密码(todesk)
68
0
0
@staticmethod或@classmethod
摘要:@staticmethod或@classmethod不需要实例化, 可直接调用函数,即不需要传参对象函数self和类函数cls class A(object): bar = 1 def foo(self): print 'foo' @staticmethod def static_foo(): pr
37
0
0
   
点击右上角即可分享
微信分享提示
深色
回顶
收起