2.3k 2 分钟

drag.html <!DOCTYPE html><html lang="en"><head> <meta charset="UTF-8"> <title>Title</title> <style type="text/css"> .drag-area { width: 205px; height: 500px; background: #fff; display:...
659 1 分钟

场景:执行以下查询,查看 pycharm Sciview,可以看到乱码,因为查询结果有西欧语言(如:ÿum) df_rows = pd.read_sql_query(sql, engine) 原因 (1)查看 DB 字符集,结果是:WE8ISO8859P1 (ISO8859) select * from nls_database_parameters where parameter ='NLS_CHARACTERSET';(2)查看当前默认字符集为,结果为:ASCII >>> import sys>>>...
1.7k 2 分钟

import datetimeimport os import xlsxwriterimport smtplibfrom os.path import basenamefrom email.mime.application import MIMEApplicationfrom email.mime.multipart import MIMEMultipartfrom email.mime.text import MIMETextfrom email.utils import formatdate def write_data_to_excel(file_name, data): wbk =...
4.2k 4 分钟

html <!DOCTYPE html><html lang="en"><head> <meta charset="UTF-8"> <title>Bootstrap-Table Export</title> <link href="https://cdnjs.cloudflare.com/ajax/libs/bootstrap-table/1.13.5/bootstrap-table.css"...
1.4k 1 分钟

import cdn <link href="https://cdnjs.cloudflare.com/ajax/libs/bootstrap-table/1.13.5/bootstrap-table.css" rel="stylesheet"> <script src="https://cdnjs.cloudflare.com/ajax/libs/bootstrap-table/1.13.5/bootstrap-table.js"></script>...
1.2k 1 分钟

MySQL 8 1251 client does no support authentic... 参考:https://blog.csdn.net/baidu_30809315/article/details/88599054 解决:更新密码 sqlalchemy.exc.NotSupportedError: (mysql.connector.errors.NotSupportedError) Authentication plugin 'caching_sha2_password' is not...
275 1 分钟

以 windows 为例,cmd 进入命令行,cd 进入 mysql 安装后的 bin 目录,登陆 mysql 查看用户信息 select host,user,plugin,authentication_string from mysql.user; 更新密码 ALTER USER 'root'@'localhost' IDENTIFIED WITH mysql_native_password BY 'root'; 再次查看用户信息,并核对 登陆 navicat for...
1.3k 1 分钟

<!DOCTYPE html><html lang="en"><head> <meta charset="UTF-8"> <title>Title</title> <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css">...
4.9k 4 分钟

modal box. when click button, pop up a modal form, this form contains date input and select box <div class="col-sm-1"> <button type="button" data-toggle="modal" data-target="#modalExportForm"...
2.7k 2 分钟

@report.route('/export', methods=['GET'])@login_requireddef export(): from io import BytesIO import pandas as pd # DataFrame data df_sheet1 = pd.DataFrame() df_sheet2 = pd.DataFrame() df_sheet3 = pd.DataFrame() df_sheet4 = pd.DataFrame() df_sheet5 = pd.DataFrame() output = BytesIO()...