当前位置: 首页 > news >正文

wordpress插件会员中心搜索引擎优化包括哪些方面

wordpress插件会员中心,搜索引擎优化包括哪些方面,高州网站设计,传动设备 技术支持 东莞网站建设那位大神帮小弟看下这段代码有什么需要改进的没有。程序要求为#xff1a;程序主要内容是#xff1a;大地坐标经纬度的格式转换问题#xff0c;例如12030′30″转换为120.50833333#xff0c;并且可以互换#xff0c;这样的程序。...那位大神帮小弟看下这段代码有什么需要…那位大神帮小弟看下这段代码有什么需要改进的没有。程序要求为程序主要内容是大地坐标经纬度的格式转换问题例如120°30′30″转换为120.50833333°并且可以互换这样的程序。...那位大神帮小弟看下这段代码有什么需要改进的没有。程序要求为程序主要内容是 大地坐标经纬度的格式转换问题例如120°30′30″ 转换为120.50833333° 并且可以互换 这样的程序。具体实现为度分秒与十进制的度 单个坐标互换而且最重要的是可以调用本地的txt文件批量转换并保存成txt文档。公式1.度分秒转换成十进制度公式例如 原数据 a°b′c″要得到的数据为 {a[(bc/60)/60]}°2.十进制度转换成度分秒公式例如 原数据 A.B°要得到的数据为 A° [取整(B*60)]′ {[B*60-取整(B*60)]*60}″具体代码为from __future__ import divisionimport stringimport mathdef transferDuFenMiao(fileContentList):changedList []for item in fileContentList:print itemgpsListstr(item).split()print gpsListif len(gpsList) 3:print data item is not corrctelse:du gpsList[0]print dufen gpsList[1]print fenmiao gpsList[2]print miao#{a[(bc/60)/60]}°print string.atof(miao)print string.atof(fen)/60print (string.atof(miao)string.atof(fen)/60)/60data string.atof(du) (string.atof(miao)string.atof(fen)/60)/60print datachangedList.append(data)return changedList#120.50833333°def transferDecimal(fileContentList):changedList []for i in fileContentList:gpsList str(i).split(.)if len(gpsList) ! 2:print data i is not corrctelse:a gpsList[0]b gpsList[1]#A° [取整(B*60)]′ {[B*60-取整(B*60)]*60}″du gpsList[0]fen math.ceil((string.atof(gpsList[1])*60)/60)miao (string.atof(gpsList[1])*60-fen)*60data dustr(fen)str(miao)changedList.append(data)return changedListdef readFile(fileName):print begin read filefpopen(fileName)arr[]for lines in fp.readlines():#lineslines.replace(\n,).split(,)print linesarr.append(lines)fp.close()return arrdef writeFile(toBeWrittenList,fileName):flopen(fileName, w)for i in toBeWrittenList:fl.write(str(i))fl.write(\n)fl.close()def main():print please choose your model,1:present du-fen-miao model,2:present decimal modelflag input()print please input the file you want fo parsefileName raw_input()print flagprint fileNamearrayList readFile(fileName)print hereif flag 1:print begin tranfer based on du_fen_miaowriteFile(transferDuFenMiao(arrayList),output1.txt)elif flag 2:print begin transfer based on decimalwriteFile(transferDecimal(arrayList),output2.txt)if __name__ __main__:main()展开
http://www.sadfv.cn/news/439012/

相关文章:

  • 多用户网站建设方案网站建设销售兼职合同
  • 建设一个公司网站ppt模板红色主题
  • 房地产网站建设哪家有效果网站logo位置
  • 北京住房投资建设中心网站首嵌入式软件开发面试问题
  • 有源码做网站做网站总结作文
  • 海南网站推广短链接生成器手机版
  • 怎么跳转网站6种常见的网页布局类型
  • 即墨有做网站的吗绍兴市工程建设网站
  • 网站核验单下载外网服务器
  • 中职网站建设滁州市南谯区建设局网站
  • 遵化市城乡建设局网站用dw做网站怎么添加水平线
  • 网站开发项目预算表wordpress 4.9.4 主题
  • wordpress两个站点广东省农业农村厅电话
  • 做高清图的网站做户外照明有哪些网站
  • 百度有个学习的网站建设叫什么网站及邮件系统建设
  • 网站怎么做才能让更多平台展现营销推广方案范文
  • 校友网站建设的重要性wordpress页眉透明
  • 上海网站建设服务站霸网络大型网站得多少钱
  • 在线装修网seo案例模板
  • wordpress的网站好用吗互动营销案例分析
  • 建设童装网站的意义网站做报表
  • 灵璧县住房和城乡建设局网站seo关键词排名优化要多少钱
  • iis wordpress多站点汽车用品网站规划
  • ps做网站首页效果特效html网页设计作业成品代码
  • 网站建设程序员招聘左右左右网站
  • mil后缀网站网站建设管理经验
  • 牛商网做的网站如何凡客诚品图片
  • 收费网站模板开发外包公司有哪些?哪个比较好
  • 上海电子门户网站建设数据微信小程序网站建设公司
  • 用h5做的网站做竞猜网站合法吗