摘要: #列表 #增 L1 = ['test1', 'test2', True, 1] #末尾增加 L1.append(False) print('L1:', L1) #任意位置添加 L1.insert(1, False) print('L1:', L1) #迭代添加,括号里是可迭代对象,末尾追加 L1.e 阅读全文
posted @ 2021-03-01 19:50 尐少 阅读(63) 评论(0) 推荐(0)
摘要: 基础数据类型int、str、bool转换 int 转 str str 转 int,必须全数字 int 转 bool,非零既真 bool 转 int,True = 1, False = 0 str 转 bool,非空为真,空为False bool 转 str 字符串操作 s = 'python' #索 阅读全文
posted @ 2021-01-18 16:05 尐少 阅读(100) 评论(0) 推荐(0)
摘要: 建库 create database 库名 删库 drop database 库名 备份 backup database 库名 to disk='路径' 还原 restore database 库名 from disk='路径' 删表 drop table 表名 增加列 alter table 表名 阅读全文
posted @ 2018-11-21 21:42 尐少 阅读(129) 评论(0) 推荐(0)