实战2:使用selenium爬取淘宝数据,保存在mongodb 配置文件 MONGO_URL = 'localhost' MONGO_DB = 'taobao' MONGO_TABLE = 'yintiao' 爬虫文件 from selenium import webdriver from sele ...
分类:
数据库 时间:
2021-01-11 10:47:01
阅读次数:
0
Problem LeetCode Given a binary search tree, write a function kthSmallest to find the kth smallest element in it. Example 1: Input: root = [3,1,4,null ...
分类:
编程语言 时间:
2021-01-11 10:45:32
阅读次数:
0
# 函数版学员管理系统 class System1(): info = [] def info_print(self): print('请选择功能:' + '-' * 30) print(' 1、添加学员\t', '2、删除学员\t', '3、修改学员\t', '4、查询学员\n', '5、显示学员 ...
分类:
其他好文 时间:
2021-01-11 10:39:10
阅读次数:
0
1、安装Git 在Git Bash里输入git --version 如果显示版本号,则说明Git安装成功。 2、在GitHub上新建一个仓库 例如:myrepo 3、在本地新建一个文件夹,作为VSCode代码的工作文件夹 例如:mycode 4、mycode既是VSCode的代码工作文件夹又应该是G ...
分类:
其他好文 时间:
2021-01-08 11:31:51
阅读次数:
0
1 1847 2 System 4 Memory 6 % Processor Time 10 File Read Operations/sec 12 File Write Operations/sec 14 File Control Operations/sec 16 File Read Bytes ...
显示百分比 import sys import time n = 1 while n <= 100: sys.stdout.write('{}{:.0f}%\r'.format('*' * n, float(n / 100) * 100)) if n == 100: sys.stdout.write ...
分类:
编程语言 时间:
2021-01-08 10:51:26
阅读次数:
0
显示百分比 import sys import time n = 1 while n <= 100: sys.stdout.write('{}{:.0f}%\r'.format('*' * n, float(n / 100) * 100)) if n == 100: sys.stdout.write ...
分类:
编程语言 时间:
2021-01-08 10:50:22
阅读次数:
0
一、操作如下,可以将json对象转为字符串 Json::Value root; root["name"] = "咸鱼"; root["age"] = 100; string str; Json::FastWriter fast; str = fast.write(root); cout << str ...
分类:
Web程序 时间:
2021-01-08 10:32:42
阅读次数:
0
1 f = open("20201212.txt", "w") 2 f.write ("20201212") 3 4 f=open("20201212.txt","r") 5 print(f.read()) 6 f.close() 7 8 f=open("20201212.txt","r") 9 n ...
分类:
编程语言 时间:
2021-01-07 12:03:08
阅读次数:
0
vim mongodb.yaml apiVersion: apps/v1 kind: Deployment metadata: name: mongodb labels: app: mongodb spec: replicas: 1 selector: matchLabels: app: mongo ...
分类:
数据库 时间:
2021-01-07 11:58:16
阅读次数:
0