摘要: # -*- coding: UTF-8 -*- import requests import time from urllib.parse import quote import pymongo #获取出发地 def from_point(): # client=pymongo.MongoClien 阅读全文
posted @ 2021-02-23 10:54 山药牛肉 阅读(199) 评论(0) 推荐(0)
摘要: l=[1,2,3,4,5,6] for i in l: if i==2: break #停止循环 #continue #跳过i为2 其他继续循环 print(i) #注意下变量i的作用域 阅读全文
posted @ 2021-02-23 10:50 山药牛肉 阅读(105) 评论(0) 推荐(0)
摘要: # -*- coding: UTF-8 -*- import pymongo # 连接数据库 client = pymongo.MongoClient('localhost',27017) #创建链接客户端 db=client['qunar'] #创建数据库连接 collection=db['dep 阅读全文
posted @ 2021-02-23 10:05 山药牛肉 阅读(236) 评论(0) 推荐(0)