Python MGRS错误:字符串错误
亲爱的朋友们 我本应该使用a,但我被困在这个问题上:Python MGRS错误:字符串错误,python,string,Python,String,亲爱的朋友们 我本应该使用a,但我被困在这个问题上: import mgrs m = mgrs.MGRS() d = m.toLatLon('15TWG0000049776') print(d) 控制台显示: mgrs.core.RTreeError:Convert_mgrs_To_Geodetic中的错误:mgrs Errors:String Errormgrs库需要字节文本而不是字符串。因此: d=m.toLatLon('15twg000049776'.encode())您看到了吗?
import mgrs
m = mgrs.MGRS()
d = m.toLatLon('15TWG0000049776')
print(d)
控制台显示:
mgrs.core.RTreeError:Convert_mgrs_To_Geodetic中的错误:mgrs Errors:String Errormgrs库需要字节文本而不是字符串。因此:
d=m.toLatLon('15twg000049776'.encode())
您看到了吗?