paip.将数据导入到在英语语音数据库mysql道路解决空原则问题
2023-09-14 09:08:03 时间
paip.将数据导入到在英语语音数据库mysql道路解决空原则问题
#---原因:mysql 导入工具bug
#---解决:不要使用双引号括注音.
笔者 老哇爪 Attilax 艾龙。 EMAIL:1466519819@qq.com
转载请注明来源: http://blog.csdn.net/attilax
from log import *
iniLog (r"c:\enWzPhonetic.log")
n=0
for line in lines:
if(n>100000 ):break;
if( not isContain(line, "[")):continue;
word= left_ByFirstChar(line, r"[")
word=trim(word)
logging.info(" start to word:"+word)
phonetic=subStrNtrim(line, r"[", r"]")
phonetic=replace_multiple(phonetic,splitor, spltrFinal )
phonetic=trim_multi(phonetic, "@ ")
logging.info(word+"---\""+phonetic+"\"")
#todox import mysql5.6 empty, in phntc ,so .must include use doubleQuot
line=word+"\t\""+phonetic+"\""
fileHandle.write(line+"\n")
n=n+1
#endfor
print ("啊?b?
#---原因:mysql 导入工具bug
#---解决:不要使用双引号括注音.
笔者 老哇爪 Attilax 艾龙。 EMAIL:1466519819@qq.com
转载请注明来源: http://blog.csdn.net/attilax
from log import *
iniLog (r"c:\enWzPhonetic.log")
n=0
for line in lines:
if(n>100000 ):break;
if( not isContain(line, "[")):continue;
word= left_ByFirstChar(line, r"[")
word=trim(word)
logging.info(" start to word:"+word)
phonetic=subStrNtrim(line, r"[", r"]")
phonetic=replace_multiple(phonetic,splitor, spltrFinal )
phonetic=trim_multi(phonetic, "@ ")
logging.info(word+"---\""+phonetic+"\"")
#todox import mysql5.6 empty, in phntc ,so .must include use doubleQuot
line=word+"\t\""+phonetic+"\""
fileHandle.write(line+"\n")
n=n+1
#endfor
print ("啊?b?
'rei?
?n")
fileHandle.close()
版权声明:本文博主原创文章,博客,未经同意不得转载。
相关文章
- shell脚本--操作MySQL数据库
- MySQL_(Java)使用JDBC向数据库中删除(delete)数据
- mysql创建数据库
- 还原MySql数据库失败:max_allowed_packet 设置过小导致记录写入失败
- 使用phpMyAdmin修改MySQL数据库root用户密码
- 【MySQL】批量删除mysql中数据库中的表
- shell安装mysql,连接数据库,创建数据库
- MySQL数据库如何导入导出
- mysql 常用命令,连接数据库,查看建表语句,批量导入数据,批量更新数据,连接查询
- ngrinder groovy 参数化登录账号和密码(以mysql数据库为例)
- 数据库基础之Mysql(1)常用命令
- MYSQL数据库数据拆分之分库分表总结
- 数据库内核月报 - 2015 / 06-MySQL · 答疑解惑 · binlog event 中的 error code
- Atitit 数据库 标准库 sdk 函数库 编程语言 mysql oracle attilax总结
- paip.解决 数据库mysql增加列 字段很慢添加字段很慢
- 〖Python 数据库开发实战 - MySQL篇㉕〗- 数据更新操作 - UPDATE 语句
- 〖Python 数据库开发实战 - MySQL篇㉖〗- 数据删除操作 - DELETE语句
- 〖Python 数据库开发实战 - MySQL篇㉝〗- 数据的导入与导出
- 数据库实践丨使用MTK迁移Mysql源库后主键自增列导致数据无法插入问题
- JAVA连接ACCESS、MYSQL、SQLSEVER、ORACLE数据库
- 第55讲:MySQL数据库视图中数据的更新操作
- Mysql建立数据库时创建数据库时指定数据库的字符模式
- 【MySQL数据库原理】Python3连接 MySQL 数据库创建并写入数据列表
- 在Redhat 7下安装MySQL数据库 和 配置