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