摘要
Python包含大量官方库,可以实现种类繁多的编程工作,如Selenium库可实现自动化测试,Openpyxl库可操作excel数据表,这些库可以极大地节约时间,提升工作效率。通过一个具体案例的设计实现过程阐述了如何采用Python的seleni⁃um、openpyxl等实现Web脚本自动化操作,解决了项目中大量重复性工作的自动化实现目标。
Python contains a large number of official libraries,which can realize a wide range of programming work.For example,seleni⁃um library can realize automatic testing,openpyxl library can operate Excel data tables,which can greatly save time and improve work efficiency.Through the design and implementation of a specific case,this paper expounds how to use the selenium and openpyxl of Py⁃thon to realize the automatic operation of Web script,and solves the automatic realization goal of a large number of repetitive work in the project.
作者
马宁
陈曦
张李铭
MA Ning;CHEN Xi;ZHANG Li-ming(Shaoguan Power Supply Bureau of Guangdong Power Grid Co.,Ltd.,Shaoguan 512026,China;College of Information Science and Engi⁃neering,Shaoguan University,Shaoguan 512005,China)
出处
《电脑知识与技术》
2020年第1期51-53,70,共4页
Computer Knowledge and Technology
基金
广东电网有限责任公司韶关供电局职工技术创新项目资助(项目编码:030200KK52190045)