随笔分类 -  Python

Python笔记
摘要:连接数据库 上面包括链接mongodb、选择数据库、数据库认证和选取数据表的代码。 添加数据 还可以使用一个list,其中放多个这样的字典,用 就可以一次将list中的所有dict的数据在一次请求中全部写入MongoDB。 查询数据 对于唯一索引, 就就足够,还可以用 查询所有符合条件的条目。 删除 阅读全文
posted @ 2019-04-03 13:56 agichen 阅读(1669) 评论(0) 推荐(0)
摘要:search → find something anywhere in the string and return a match object. match → find something at the beginning of the string and return a match obj 阅读全文
posted @ 2019-03-10 10:16 agichen 阅读(315) 评论(0) 推荐(0)
摘要:join Wait until the thread terminates. This blocks the calling thread until the thread whose join() method called terminates either normally or throug 阅读全文
posted @ 2019-02-01 11:37 agichen 阅读(246) 评论(0) 推荐(0)
摘要:基本语法对比 都可以在html中提取内容,但xpath可以提取xml的内容. 阅读全文
posted @ 2019-01-17 20:59 agichen 阅读(416) 评论(0) 推荐(0)