>>> line = "$GPRMC,199304.973,3248.7780,N,11355.7832,W,1,06,02.2,25722.5,M,,,*00">>> line = line.split(",")>>> neededData = (float(line[2]), line[3], float(line[4]), line[5], float(line[9]))>>> print neededData(3248.7779999999998, 'N', 11355.7832, 'W', 25722.5)
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)