
python
文章平均质量分 54
新手试水
这个作者很懒,什么都没留下…
展开
-
if __name__ == "__main__"的用法
想知道某个语句的用法,最好的办法就是用实例来说明, de shi yo u(对吧的意思) vi module.py 1 #!/usr/bin/python 2 3 # -*-encoding=utf-8 4 5 def cow_say(): 6 print 'hello world' 7 8 def cmatrix(): 9原创 2014-12-08 12:08:42 · 486 阅读 · 0 评论 -
python 操作 excel
首先,先查看xlrd(对excel文件的read操作)和xlwt(对excel文件的write操作)的版本信息 >>> import xlrd >>> print xlrd.__VERSION__ 0.9.3 >>> import xlwt >>> print xlwt.__VERSION__ 0.7.5 >>> help(xlrd) PACKAGE CONTENTS原创 2014-12-08 15:32:06 · 452 阅读 · 0 评论