[item['url'] for item in item_info.find()]
等于
for item in item_info.find():
info_urls.append(item['url'])
python 教程
http://www.runoob.com/python3/python3-interpreter.html
random 函数需要导入,
random.choice
random.randrange(0, 3) 两个用法
[item['url'] for item in item_info.find()]
等于
for item in item_info.find():
info_urls.append(item['url'])
python 教程
http://www.runoob.com/python3/python3-interpreter.html
random 函数需要导入,
random.choice
random.randrange(0, 3) 两个用法