from uaDevice import parseUA
ua = 'BlackBerry7100i/4.1.0 Profile/MIDP-2.0 Configuration/CLDC-1.1 VendorID/103'
parseUA(ua)
报错:
Traceback (most recent call last):
File "test.py", line 4, in <module>
parseUA(ua)
File "./uaDevice/uaDevice.py", line 31, in parseUA
uaData = UA(ua).getUaInfo()
File "./uaDevice/useragentBase.py", line 90, in __init__
self.detect(ua)
File "./uaDevice/useragentBase.py", line 709, in detect
ver = float('.'.join(ver.split('.')[:2])) # 只要一个dot,否则float报错
ValueError: could not convert string to float:
test.py
报错: