04 2020 档案

摘要:Gin框架必须配置完路径才能访问静态文件 // gindemo.gopackage main import ( "net/http" "github.com/gin-gonic/gin" ) func main() { // 创建一个默认的路由引擎 r := gin.Default() // 配置模 阅读全文
posted @ 2020-04-29 15:45 aaronthon 阅读(18532) 评论(0) 推荐(1) 编辑
摘要:内置包net/http。 // 服务端package main import ( "fmt" "net/http" ) // http server func sayHello(w http.ResponseWriter, r *http.Request) { fmt.Fprintln(w, "He 阅读全文
posted @ 2020-04-26 20:00 aaronthon 阅读(261) 评论(0) 推荐(0) 编辑
摘要:python使用xlrd模块可以读取xls和xlsx文件. import xlrd import os file_addr = "E://test.xlsx" # xlsx文件存在 if os.path.exists(file_addr): # 读取内容 xls_file = xlrd.open_w 阅读全文
posted @ 2020-04-24 17:36 aaronthon 阅读(762) 评论(0) 推荐(0) 编辑
摘要:mysql -h 10.130.**.** -u username -p 输入密码. 阅读全文
posted @ 2020-04-21 15:47 aaronthon 阅读(1859) 评论(0) 推荐(0) 编辑
摘要:一 方法 selenium为定位元素提供了较多方法,大致分为单元素定位和多元素定位. # 查找单个元素:find_element_by_id find_element_by_name find_element_by_xpath find_element_by_link_text find_eleme 阅读全文
posted @ 2020-04-20 20:31 aaronthon 阅读(35763) 评论(0) 推荐(1) 编辑
摘要:selenium是一款用于web程序的测试工具,它能直接调用控制浏览器,就像用户操作浏览器一样,多用于爬虫等. 官方文档: https://selenium-python.readthedocs.io/index.html 一 安装 # 安装seleniumpip install selenium 阅读全文
posted @ 2020-04-20 17:26 aaronthon 阅读(353) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示