- 博客(3)
- 资源 (3)
- 收藏
- 关注
原创 2021-02-11字符串
Python字符串的取值str = 'abcdefghijk'print (str[0:3]) #截取第一位到第三位的字符print (str[:]) #截取字符串的全部字符print (str[6:]) #截取第七个字符到结尾print (str[:-3]) #截取从头开始到倒数第三个字符之前print (str[2]) #截取第三个字符print (str[-1]) #截取倒数第一个字符print (str[::-1]) #创造一个与原字符串顺序相反的字符串print (str[.
2021-02-11 11:04:37 103
原创 xlwins
读写加速关键import xlwings as xwapp=xw.App(visible=True,add_book=False)#下面可以加速,不必打开Excel程序app.display_alerts=False #不显示Excel消息框app.screen_updating=False #关闭屏幕更新,可加快宏的执行速度wb=app.books.open('xxx.xlsx')wb.save()wb.close()app.quit() # 退出excel程序,# a
2021-02-10 10:44:22 233 1
原创 提示"UnicodeDecodeError: 'gbk' codec can't decode byte 0x80 in position 44: illegal multibyte sequenc
若尝试以下无效函数('地址',encoding='UTF-8')重启spyder可能有效https://blog.csdn.net/zhangpeterx/article/details/103843773
2020-05-03 11:21:45 2008
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人