随笔分类 -  python

摘要:import xml.etree.ElementTree as ET import os classes = ["线纹", "打砂纹", "砂轮纹", "抛光不足",] for obj in root.iter('object'): cls = obj.find('name').text cls_i 阅读全文
posted @ 2021-05-24 10:30 callcall 阅读(281) 评论(0) 推荐(0) 编辑
摘要:VisibleDeprecationWarning: Creating an ndarray from ragged nested sequences (which is a list-or-tuple of lists-or-tuples-or ndarrays with different le 阅读全文
posted @ 2021-02-02 15:01 callcall 阅读(9250) 评论(0) 推荐(0) 编辑
摘要:今天,PySide2获取line控件的值时,出现错误,看了一下python并不能直接从读取qt的string转int,要先转float再转int。 int()函数是可以将字符串转换为整形,但是这个字符串如果是带小数点,就会出现报错. a = int(value) 报错: ValueError: in 阅读全文
posted @ 2020-12-16 16:20 callcall 阅读(10148) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示
深色
回顶
展开