![](https://img-blog.csdnimg.cn/20201014180756925.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
报错分析
点点滴滴25
菜鸡
展开
-
Android 那些年我进过的“坑” (持续更新中)
1. Attempt to invoke virtual method ……………… on a null object reference解决:系统说这个TextView是个空对象,下图这个地方少写了view对象,导致系统没找到这个TextView。原创 2020-05-12 12:47:02 · 210 阅读 · 0 评论 -
快速查找下载java项目所需jar包 eclipse 项目显示红色感叹号
目录1.原因:java项目缺少jar包2.方法:(1):http://www.devexception.com/j2se/545902.htm(2):https://www.kumapai.com/open再也不用在CSDN用积分下载jar包了!本人学生小白,如果有哪点说的不对,请留言指出。1.原因:java项目缺少jar包2.方法:(1):http://w...原创 2019-12-04 13:07:24 · 6036 阅读 · 0 评论 -
error C2668: 'sqrt' : ambiguous call to overloaded function
分析:模棱两可的函数调用,(在oj上提交会编译出错)Compile ErrorMain.cppF:\temp\19889863.2398\Main.cpp(21) : error C2668: 'sqrt' : ambiguous call to overloaded function math.h(581): could be 'long double sqr...原创 2019-03-10 20:01:33 · 1269 阅读 · 0 评论 -
UnicodeDecodeError: 'utf-8' codec can't decode byte 0xa1 in position 0 报错解决
报错:stopwords = pd.read_csv("stopwords.txt",index_col=False,quoting=3,sep=" ",names=['stopword'],encoding='UTF-8')UnicodeDecodeError: 'utf-8' codec can't decode byte 0xa1 in position 0Python 编码中...原创 2019-10-02 20:16:08 · 13292 阅读 · 4 评论 -
python:open r可以读取到文件数据,但a+读取不到
打开模式为a+,读取不到数据file=open('thord.txt','a+',encoding='utf-8')res=file.read()print(res)file.close()控制台无打印信息为什么a+读不到数据呢,a+也是读写呀?---原因:a+模式打开文件指针在文件结尾处,所以直接读是读不到内容的...原创 2019-10-02 20:17:45 · 970 阅读 · 0 评论 -
bat批处理执行python 的几种方式 ———— 批处理, python打包成 exe文件
批处理1.@echo off C: cd C:\Users\ldl\Desktopstart python test100.py start python 1.py start python 1.py 10start python 1.py 100 exit2.我用的是第二种,第一种不知道为什么没成功,会闪退。 start cmd /K "C:&&a...原创 2019-10-02 20:22:35 · 840 阅读 · 0 评论