上一页 1 ··· 3 4 5 6 7 8 下一页
摘要: import matplotlib.pyplot as plt import random plt.rcParams["font.sans-serif"]=["SimHei"] plt.rcParams["axes.unicode_minus"]=False fig, ax = plt.subplo 阅读全文
posted @ 2023-05-17 09:02 徐俊112 阅读(34) 评论(0) 推荐(0)
摘要: import matplotlib.pyplot as plt plt.rcParams["font.sans-serif"]=["SimHei"] plt.rcParams["axes.unicode_minus"]=False # 解决中文乱码问题 fig, ax = plt.subplots( 阅读全文
posted @ 2023-05-16 15:43 徐俊112 阅读(14) 评论(0) 推荐(0)
摘要: from selenium.webdriver.chrome.options import Options chrome_options = Options() prefs = {"download.default_directory":'{}'.format('下载地址')} # 下载路径为 D: 阅读全文
posted @ 2023-05-10 12:30 徐俊112 阅读(82) 评论(0) 推荐(0)
摘要: import jaydebeapi import os import logging import time class Postgre_Person: def __init__(self): # 打开数据库连接 for i in range(10): try: url = ### user = # 阅读全文
posted @ 2023-04-23 15:32 徐俊112 阅读(139) 评论(0) 推荐(0)
摘要: import jaydebeapi for i in range(10): try: url = ###### user = ##### password = ##### dirver = 'com.informix.jdbc.IfxDriver' jarFile = "D:\\informix\i 阅读全文
posted @ 2023-04-23 15:25 徐俊112 阅读(214) 评论(0) 推荐(0)
摘要: 使用pip3安装psycopg2 pip install psycopg2 增删改查(CRUD)新建数据库PostgreSQL不支持"SHOW DATABASES"语句,需要使用"SELECT * FROM PG_DATABASE;"进行查询,才能获取当前数据库列表,由于这里只需要做创建数据库前后的 阅读全文
posted @ 2023-03-24 16:44 徐俊112 阅读(449) 评论(0) 推荐(0)
摘要: 查询当前数据库: select current_database(); 查看数据库的连接地址和端口: select inet_server_addr(),inet_client_port(); 查看当前用户名: select current_user; 查看当前版本: select version( 阅读全文
posted @ 2023-03-24 16:39 徐俊112 阅读(865) 评论(0) 推荐(0)
摘要: import phone from time import * import re def begin(): print("欢迎来到查询小程序") print("1.查询") print("2.用户") def p(n): if re.match(r'1[3,4,5,7,8]\d{9}', n): 阅读全文
posted @ 2023-03-23 10:05 徐俊112 阅读(59) 评论(0) 推荐(0)
摘要: 操作页面下拉框,一般来说分为两种情况,一种是标准的select标签下拉框;另一种是非select类下拉框,比如ul-li标签下拉框。针对select标签的下拉框,selenium提供了一个select类;针对非select标签实现的下拉框,可以通过模拟鼠标点击的方式实现操作。1、select标签下拉 阅读全文
posted @ 2023-02-23 15:43 徐俊112 阅读(775) 评论(0) 推荐(0)
摘要: 一、selenium的定位方式有以下八种: find_element_by_id() find_element_by_class_name() find_element_by_link_text() find_element_by_xpath() find_element_by_name() fin 阅读全文
posted @ 2023-02-23 15:06 徐俊112 阅读(49) 评论(0) 推荐(0)
上一页 1 ··· 3 4 5 6 7 8 下一页