代码改变世界

MySQL错误:You are using safe update mode and you tried to update a table without a WHERE that uses a K

2018-07-03 13:52 by 改改~_~, 3945 阅读, 0 推荐, 收藏, 编辑
摘要:今日用MySQL Workbench进行数据库的管理更新时,执行一个更新的语句碰到以下错误提示: Error Code: 1175 You are using safe update mode and you tried to update a table without a WHERE that 阅读全文

将excel导入mysql(使用navicat)

2018-07-03 13:43 by 改改~_~, 10660 阅读, 0 推荐, 收藏, 编辑
摘要:来源:https://www.cnblogs.com/xjnotxj/p/5304052.html excel: 注: 1、mysql里建立一张跟excel一样的表结构的表(包含id) 2、excel最好没有任何格式,只是纯值,不然会出现导入不了的错误 ① ② 注:选择文件路径的时候,一定要确保该e 阅读全文

python3与mysql:创建表、插入数据54

2018-07-03 11:04 by 改改~_~, 2756 阅读, 0 推荐, 收藏, 编辑
摘要:1 import pymysql 2 db = pymysql.connect(host='localhost',user='root',passwd='123456',db='jodb1',port=3307,charset='utf8') 3 # #测试连接开发库成功 4 # db = pymy 阅读全文

python3中pymysql模块安装及连接数据库(同‘python安装HTMLTestRunner’)

2018-07-02 17:15 by 改改~_~, 565 阅读, 0 推荐, 收藏, 编辑
摘要:https://pypi.org/project/PyMySQL/#files 安装完成之后就是连接数据库了 机器上安装了mysql的数据库,并且已经创建了两张表用于测试 python3连接数据库及删除其中的一张表 这个过程了开始一直在试图导图入#import MySQLdb as mdb,但是提示 阅读全文

0702面向对象180

2018-07-02 14:51 by 改改~_~, 234 阅读, 0 推荐, 收藏, 编辑
摘要:1 print('hehda ') 2 3 class MyClass: 4 i = 123456 5 def f(self): 6 # print('The function in class') 7 return 'hhe ' 8 x = MyClass() 9 # print(MyClass. 阅读全文

错误和异常86

2018-06-29 17:55 by 改改~_~, 290 阅读, 0 推荐, 收藏, 编辑
摘要:1 # while True: print('Hello World!') 2 print('异常有不同的类型,这些类型都作为信息的一部分打印出来:以下例子中的类型有ZeroDivisiongError,NameError和TypeError') 3 # print(10*(1/0)) 4 5 # 阅读全文

OS-96

2018-06-28 17:18 by 改改~_~, 250 阅读, 0 推荐, 收藏, 编辑
摘要:1 print('os.access(path,mode):检验权限模式 ') 2 3 import os,sys 4 # os.F_OK: 作为access()的mode参数,测试path是否存在。 5 ret = os.access('E:\\foo.txt',os.F_OK) 6 print( 阅读全文

0627-File-163

2018-06-27 17:06 by 改改~_~, 299 阅读, 0 推荐, 收藏, 编辑
摘要:1 print('创建一个文件向其中写入信息,再读取出写入的信息 ') 2 f = open('E:\\foo4.txt','w+') 3 f.write('第1行:呵呵哒001。\n第2行:呵呵哒002。\n第3行:呵呵哒003。\n第4行:呵呵哒004。\n') 4 5 f = open('E: 阅读全文

九九乘法表22

2018-06-27 17:04 by 改改~_~, 252 阅读, 0 推荐, 收藏, 编辑
摘要:1 #完成的代码实现 2 for row in range(1,10): 3 for col in range(1,10): 4 if col <=row: 5 pro = row*col 6 col += col+1 7 print('{0:3d}'.format(pro),end = '') 8 阅读全文

python输入与输出165

2018-06-26 18:00 by 改改~_~, 456 阅读, 0 推荐, 收藏, 编辑
摘要:1 s = 'Hello,Runoob' 2 3 print(s) 4 5 str(s) 6 print(s) 7 8 print(repr(s)) 9 10 print(1/7) 11 print(str(1/7)) 12 print(repr(1/7)) 13 14 print('repr()的 阅读全文
上一页 1 ··· 15 16 17 18 19 20 21 22 23 ··· 26 下一页