10 2016 档案

摘要:显示数据表结构 1、desc(describe) tablename;2、show columns from tablename;3、use information_schema; select * from columns where table_name='tablename';4、show c 阅读全文
posted @ 2016-10-24 11:20 tec2019 阅读(145) 评论(0) 推荐(0)
摘要:迭代 1 文件操作 我们读取文件的时候,会用到一个readline()方法,其实它就是一个迭代器,它会返回当前的数据,然后自动的调用内置的next()方法来让文件的读取头自动的移动到当前的下面一行,准备下次的读取,到达文件末尾时,就会返回空字符串. 以下方法读取速度快,占用内存小适合读取大文件。 2 阅读全文
posted @ 2016-10-20 11:17 tec2019 阅读(181) 评论(0) 推荐(0)