PyMysql连接数据库 防止sql注入 import pymysql ? ? def insertsql(): # 建立连接 connection_sql = pymysql.connect( host='localhost', port=3306, user='root', password=' ...
分类:
数据库 时间:
2021-06-07 20:05:01
阅读次数:
0
import redisr = redis.Redis(host = "118.xx.x.xx",password="xxxxxx*",port=xxxx,db=4)r = redis.Redis(host = "118.xx.x.xx",password="xxxxxx*",port=xxxx,d ...
分类:
编程语言 时间:
2021-06-06 19:33:19
阅读次数:
0
import yamailusername = "xxxxxx@qq.com"password = "xxxxxx"host = "smtp.qq.com"# host = "smtp.163.com" #163# host = "smtp.126.com" #qq# smtp.send(to="a ...
分类:
编程语言 时间:
2021-06-06 19:32:03
阅读次数:
0
Preliminaries Linux Basics Change Password: passwd shutdown: sudo shutdown -h 3 (broadcast to all users in 3 mins) reboot: sudo reboot -r now create a ...
分类:
其他好文 时间:
2021-06-06 18:53:34
阅读次数:
0
VMware Workstation 与 Device/Credential Guard 不兼容。在禁用 Device/Credential Guard 后,可以运行 VMware Workstation。 bcdedit /set hypervisorlaunchtype off 想到 之前安装过 ...
分类:
系统相关 时间:
2021-06-05 18:25:37
阅读次数:
0
使用这两个东西 可以让你在开发时,获取内个value时 直接赋到Bean类中 不用手动 set :一定需要两个包:commons-beanutils-1.8.3 和 commons-logging-1.1.1 他们两是相互依赖的具体下载在Apache 公库中下载(意思叫你百度)我用的那时候 emmm ...
分类:
其他好文 时间:
2021-06-05 17:38:22
阅读次数:
0
格式化输出 %s # 格式化输出 name = input('请输入你的姓名:') age = input('请输入你的年龄:') password = input('请输入你的密码:') msg=''' name=%s password=%s age=%s '''%(name,password,a ...
分类:
其他好文 时间:
2021-06-03 18:09:57
阅读次数:
0
这种情况大多是进去装VM自带的 open-vm-tools-desktop 导致的 使用专门的工具 sudo apt-get install open-vm-tools-desktop ...
分类:
系统相关 时间:
2021-06-02 20:22:18
阅读次数:
0
修改 my.cnf,使用原生密码 修改 /etc/mysql/my.cnf (我是 Ubuntu 16.04),添加下面一行: default-authentication-plugin= mysql_native_password然后重置密码: ALTER USER 'user'@'localho ...
分类:
数据库 时间:
2021-06-02 20:21:28
阅读次数:
0
1、首先在Linux系统下创建新的账户: 添加用户,首先用adduser命令添加一个普通用户,命令如下: #adduser tommy //添加一个名为tommy的用户 #passwd tommy //修改密码 Changing password for user tommy. New UNIX p ...
分类:
系统相关 时间:
2021-06-02 19:26:42
阅读次数:
0