随笔分类 - 遇到的一些问题和解决办法
摘要:报错:TypeError: 'float' object is not subscriptable https://www.delftstack.com/zh/howto/python-pandas/how-to-convert-float-to-int-in-pandas-dataframe/ 转
阅读全文
摘要:https://blog.csdn.net/u013084616/article/details/79064408
阅读全文
摘要:实际上,有一种方法可以通过向ExcelWriter传递参数来强制使用utf8编码 ew = pandas.ExcelWriter('test.xlsx',options={'encoding':'utf-8'}) sampleList = ['Miño', '1', '2', 'señora'] d
阅读全文
摘要:h, w, c = img.shapetry: for index, landmarks in enumerate(results.pose_landmarks.landmark): cx = int(results.pose_landmarks.landmark[index].x * w) cy
阅读全文
摘要:print(‘Original dataset shape %s’ % Counter(pd.DataFrame(y_train)))由于不可hash,所以用pd.DataFrame加上索引即可
阅读全文
摘要:类方法的第一个参数一般都是 self ,所以在调用类中的方法时,需要将实例化的类对象传入到方法中作为第一个参数 class Car: def shop(self, name, price): print(name + "价格为:", price) if __name__ == '__main__':
阅读全文
摘要:参数是数字赋值,所以程序正常运行。 在linux环境下,传递参数给python文件,传入是字符串形式,所以无法正常加减运算。 dtype('<U32')是字符串格式。 纠正: maxv=int(args[3]) # 通过int()函数,将字符串强制转化为数字。
阅读全文
摘要:# print(help(mp.python.solutions.holistic))使用此命令查看包含的函数 错误部分# body_connections = mp.solutions.holistic.UPPER_BODY_POSE_CONNECTIONS \# if self.up_body_
阅读全文
摘要:Yes, FACE_CONNECTIONS is renamed to FACE_CONTOURS. Please see the new drawing example code at https://github.com/google/mediapipe/blob/master/docs/sol
阅读全文
摘要:https://github.com/ai-coodinator/mediapipe-python/issues/1 Because you use Pose in your example, remove the line corresponding to the parameter upper_
阅读全文
摘要:linux中: 执行sudo apt-get install openssh-server 报错 使用的是CentOS, 下载的时候 使用yum不要用apt-get sudo yum install openssh-server 可以解决 ma成: https://blog.csdn.net/cam
阅读全文
摘要:终端输入sudo chown -R $USER /usr/local 输入密码 继续想做的操作 比如 sudo npm i -g live-server
阅读全文
摘要:https://github.com/piantado/kelpy/blob/master/kelpy/GIFImage.py主要创意来源是这个,相比较使用精灵,这个更加便于上手,但是版本过于老旧,有些地方可能运行不太顺畅了这个代码本身也比较臃肿,核心思想是将gif换成帧后输出。所以有一些的地方必须
阅读全文
摘要:https://blog.csdn.net/u014801367/article/details/86288078 https://www.cnblogs.com/JAYIT/p/8812235.html 注意在最后配置环境的时候要写自己的java版本!!!!!!!!!!!
阅读全文
摘要:https://www.pianshen.com/article/24721326616/ Mac 安装adb 以及基本的命令 https://blog.csdn.net/qq_23892379/article/details/82726113
阅读全文
摘要:终端输入 /bin/zsh -c "$(curl -fsSL https://gitee.com/cunkai/HomebrewCN/raw/master/Homebrew.sh)"
阅读全文
摘要:https://www.jianshu.com/p/f2a4994b3866 解决的方法 cd /usr/local/Homebrew/Library/Taps/homebrew rm -rf homebrew-core rm -rf homebrew-cask brew upgrade
阅读全文
摘要:中文字符串前加u https://www.cnblogs.com/lcchuguo/p/5247079.html 部分脚本缺失 https://blog.csdn.net/u013647382/article/details/48027239 使用相同的python版本打包 http://www.l
阅读全文
摘要:pip install pyppeteer安装成功之后,建议再运行pyppeteer-install,因为首次运行pyppeteer会自动下载chromium对应的版本,这个经常下载失败,会使程序运行不了。报错:urllib3.exceptions.MaxRetryError: HTTPSConne
阅读全文
摘要:1. 执行命令:netstat -tunlp 2. 执行 :kill -9 6153 (为占用进程的PID) 或者 意思是地址已被使用,搜索相关问题后发现是因为,你曾启动过相同或者类似的服务占用了这个端口(一般来讲,在Mac上直接用Python启动的话,会导致退出不完整,你不能通过点击GUI的“退出
阅读全文

浙公网安备 33010602011771号