![](https://img-blog.csdnimg.cn/20201014180756780.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
python
fengfanghuang
huangfangfeng.github.io
展开
-
linux安装autopep8使用
pip3 install autopep8/usr/local/python3/bin/autopep8 --in-place --aggressive --aggressive main.py原创 2022-03-15 10:44:02 · 2412 阅读 · 0 评论 -
Python操作Excel和word
Python操作Excel依赖两个库:pip installxlwt pip installxlrdimport xlwt import xlrd #创建一个excel对象excel_table=xlwt.Workbook(encoding='utf-8',style_compression=0) #增加一个sheet对象Sheet_1 = excel_table.add_sheet(‘sheet1’)#写sheet_1的第i行第j列,填入内容是str...原创 2021-06-28 23:26:45 · 483 阅读 · 0 评论 -
python数据类型
字符串 stringstr01='this is string'str02="this is string"str03='''this is stringthis is pythod stringthis is string'''布尔类型 boolbool=Falsebool=True整数 intint01=20#数字类型转换int(x [,base]) 将x转换为一个整数float(x ) 将x转换到一个浮点数complex(real [,imag..原创 2021-06-24 23:41:16 · 50 阅读 · 0 评论