鸭鸭的学习的日常在学习Python的过程中,对于if语句有一个疑惑:在if语句进行判定的时候是否能对字符串生效。第一次写的代码name1 = input("请输入你的名字:")name2 = input("谁是104最憨的人:")print("\n")if name2 == 张三: print("{}你真聪明".format(name1)) for i in range(5): print("{}是个憨憨".format(name2)) el
import requestsimport reimport osdef get_data(): global header url = "https://www.qiushibaike.com/imgrank/page/%d/" number = int(input("输入需要爬取的总页数:")) for ye in range(1, number + 1): new_url = format(url % ye) page_text
项目场景:问题描述:今天在电脑中安装了Python3.8.5环境,然后使用pip安装了ipython和jupyter,没想到在VS Code中使用Jupyter Notebook一直有问题,一直报一个错误:"Unable to start session for kernel Python 3.8.5 64-bit . Select another kernel to launch with."同时VS Code中Jupyter Server的状态也一直是busy![报错图片](https:/