try:
lat = float(location.split(',')[1])
lon = float(location.split(',')[0])
except ValueError:
print('no number')
判断字符串是否为小数
猜你喜欢
转载自www.cnblogs.com/hankleo/p/10876655.html
今日推荐
周排行