try:
lat = float(location.split(',')[1])
lon = float(location.split(',')[0])
except ValueError:
print('no number')
转载于:https://www.cnblogs.com/hankleo/p/10876655.html
try:
lat = float(location.split(',')[1])
lon = float(location.split(',')[0])
except ValueError:
print('no number')
转载于:https://www.cnblogs.com/hankleo/p/10876655.html