摘要:
select ...into outfile语法是mysql提供的一种数据导出的方案,支持自定义导出数据格式。 例如:将test表的所有数据全部导出到test.txt文件。 select * from test into outfile '/tmp/test.txt'; 更常用的方法是将表数据导出成 阅读全文
摘要:
1 一行 For 循环 #For循环在一行mylist = [200, 300, 400, 500] #正常方式 result = [] for x in mylist: if x > 250: result.append(x) print(result) # [300, 400, 500] #一行 阅读全文