
python
学习python的核心编程,学习django框架,学习各种技巧反爬
活火石
像火石一样时刻迸发激情和活力。
展开
-
Python2与Python3的某些区别
整除 python3整除时返回为float类型,python2返回的是int类型 # python3 root@bian-virtual-machine:/home# python3 Python 3.8.10 (default, Jun 2 2021, 10:49:15) [GCC 9.4.0] on linux Type "help", "copyright", "credits" or "license" for more information. >>> print(4 / 2原创 2021-08-20 13:45:58 · 211 阅读 · 0 评论 -
删除列表中的字典
错误示例 starr_list = [ {'演员': '王凯', '电视剧数量': 5, '短评数均值': 652733.0, '电视剧评分均值': 38.5}, {'演员': '蒋勤勤', '电视剧数量': 4, '短评数均值': 80798.0, '电视剧评分均值': 29.299999999999997}, {'演员': '周游', '电视剧数量': 1, '短评数均值': 21742.0, '电视剧评分均值': 6.9}, {'演员': '韩雪', '电视剧数量': 3, '短评数均值': 9原创 2021-05-20 14:05:31 · 1454 阅读 · 2 评论 -
jupyter-notebook的使用
jupyter-notebook的使用 下载 pip install jupyter 启动 cmd中输入命令 jupyter-notebook 修改jupyter的保存位置 配置文件保存在C:\Users\主机名\.jupyter 使用文本编辑器(比如Notepad++)打开,使用ctrl + F搜索 然后重启jupyter-notebook就好使了。 ...原创 2021-04-03 22:19:55 · 109 阅读 · 0 评论