摘要: ‘findstr’ 不是内部或外部命令,也不是可运行的程序或批处理文件。Not able to find Java executable or version. Please check your Java installation.errorlevel=2 前置条件: 1:安装jdk并配置环境 2 阅读全文
posted @ 2024-04-28 16:06 琳达的博客 阅读(14) 评论(0) 推荐(0) 编辑
摘要: import timefrom selenium import webdriverfrom selenium.webdriver.common.by import Bydriver=webdriver.Chrome()driver.get("https://www.baidu.com/")input 阅读全文
posted @ 2024-03-05 16:14 琳达的博客 阅读(15) 评论(0) 推荐(0) 编辑
摘要: pip install selenium报错如下: raise ReadTimeoutError(self._pool, None, "Read timed out.")pip._vendor.urllib3.exceptions.ReadTimeoutError: HTTPSConnectionP 阅读全文
posted @ 2024-03-04 13:45 琳达的博客 阅读(37) 评论(0) 推荐(0) 编辑
摘要: #打印最新时间(格式化时间) 阅读全文
posted @ 2024-02-27 18:04 琳达的博客 阅读(2) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2024-02-27 14:40 琳达的博客 阅读(2) 评论(0) 推荐(0) 编辑
摘要: python# 假设向程序提供了以下输入:8 然后输出应为:40320 阅读全文
posted @ 2024-02-23 18:03 琳达的博客 阅读(4) 评论(0) 推荐(0) 编辑
摘要: #编写一个程序,查找所有此类数字,它们可以被7整除,但不能是5的倍数(在2000和3200之间(均包括在内))。# 获得的数字应以逗号分隔的顺序打印在一行上。s=[]for i in range(2000,3201): if(i %7==0) and (i%5!=0): s.append(i)pri 阅读全文
posted @ 2024-02-21 14:36 琳达的博客 阅读(18) 评论(0) 推荐(0) 编辑
摘要: # 将字符串 a = “ welcome to my world ”首尾空格去掉a=" welcome to my world "print(a.strip()) 阅读全文
posted @ 2024-02-20 18:19 琳达的博客 阅读(30) 评论(0) 推荐(0) 编辑
摘要: # 输入一个姓名,判断是否姓王。name=input("请输入姓名")if name[0] =="王": print("姓王")else: print("不姓王") 阅读全文
posted @ 2024-02-20 17:06 琳达的博客 阅读(91) 评论(0) 推荐(0) 编辑
摘要: #判断字符串 a = “welcome to my world” 是否包含单词 b = “world”,包含返回 True,不包含返回 Falsedef test(): a = "welcome to my world" b="world" if b in a: return True else: 阅读全文
posted @ 2024-02-20 16:52 琳达的博客 阅读(27) 评论(0) 推荐(0) 编辑