ICode9

精准搜索请尝试: 精确搜索
  • python中range()和xrange()2019-02-24 11:51:18

    range(start,stop,step):根据start和stop的范围[start,stop)以及step的步长生成一个序列。 示例: range(5)–>[0,1,2,3,4] range(0,5) -->[0,1,2,3,4] range(0,5,2) -->[0,2,4] xrange(start,stop,step):用法和range相同,但是生成一个生成器,可迭代对象。 示例: xrange(5) -->xrange(

  • python中Excel表操作2019-01-30 17:38:18

    python中关于excel表个的操作 使用 python中的xlwt和xlrd模块进行操作 # 2003之前:Excel:xls# 2003之后:Excel:xlsx# xlrd:读取的模块:xls,xlsx# xlwt:写分模块:xls# openpyxl:既能读也能写,只能操作xlsx 所以后面一般操作excel表格最好是使用openpyxl进行操作 # encoding=utf-8 import t

专注分享技术,共同学习,共同进步。侵权联系[81616952@qq.com]

Copyright (C)ICode9.com, All Rights Reserved.

ICode9版权所有