摘要: 阅读全文
posted @ 2020-01-13 15:51 喜欢思考、爱好编程 阅读(120) 评论(0) 推荐(0) 编辑
摘要: #商品价格num = 98#循环等待用户输入i = 0while i<10: #请输入您猜的价格 user = int(input('请猜一猜当前的数字:')) #根据用户输入提示 if user > num: print('你猜的数字太大了~') elif user < num: print('你 阅读全文
posted @ 2019-08-06 16:06 喜欢思考、爱好编程 阅读(373) 评论(0) 推荐(0) 编辑
摘要: <!doctype html><html> <head> <title>信息采集</title> <meta charset="utf-8"> <link rel="icon" href="./favicon.ico"> </head> <body> <center> <table border=" 阅读全文
posted @ 2019-08-06 15:57 喜欢思考、爱好编程 阅读(423) 评论(0) 推荐(0) 编辑
摘要: redis基本操作 1.设置名为meime 2.获取name 3.查看所有 4.设置键值重复不覆盖 5.select 1 表示进入到1数据库中,默认在0数据库 6.删除所有信息 flushdb 7.单独设置过期时间 8.看看还有多久过期时间 9.删除过期时间 10.批量设置键值 11.批量获取键值 阅读全文
posted @ 2019-07-17 18:17 喜欢思考、爱好编程 阅读(237) 评论(0) 推荐(0) 编辑
摘要: mysql基本操作 create table xsb(id int,name varchar(32),age int) insert into xsb(id,name,age) value(1,”zhangsan”,23) insert into xsb values(2,’lisi’24),(3, 阅读全文
posted @ 2019-07-17 17:56 喜欢思考、爱好编程 阅读(148) 评论(0) 推荐(0) 编辑
摘要: from selenium import webdriverimport timedriver = webdriver.Chrome(r'路径chromedriver.exe')driver.get('https://weibo.com/')time.sleep(10)driver.find_ele 阅读全文
posted @ 2019-07-11 18:15 喜欢思考、爱好编程 阅读(830) 评论(0) 推荐(0) 编辑
摘要: 报错 selenium.common.exceptions.WebDriverException: Message: unknown error: call function result missing 'value' 分析原因: 由于chromedriver.exe没有加入到环境变量,导致报错 阅读全文
posted @ 2019-07-11 16:43 喜欢思考、爱好编程 阅读(162) 评论(0) 推荐(0) 编辑