![](https://img-blog.csdnimg.cn/20201014180756754.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
python学习
学习过程
Gpower丶
这个作者很懒,什么都没留下…
展开
-
网络爬虫与信息提取学习笔记_02
BeautifulSoup4 https://blog.csdn.net/weixin_43930694/article/details/90142678原创 2020-05-27 16:13:31 · 172 阅读 · 0 评论 -
网络爬虫与信息提取学习笔记_01
导入requests模块 cmd–>pip install requests 测试 import requests r = requests.get("http://www.baidu.com") print(r.status_code) r.encoding = 'utf-8' print(r.text) requests 的主要方法 requests.get()方法 get(url, params=None, **kwargs) 返回值是一个 Response对象 ...原创 2020-05-26 14:11:40 · 149 阅读 · 0 评论 -
Python学习笔记_05
机器学习实例 数据来源: 链接: https://pan.baidu.com/s/144ASMnonil7xF7u6mTWPRA 提取码: fnhb 数据不是真实的嗷,只是单纯练习 数据描述 gender:1代表男人,2代表女人 20-25岁的男人喜欢hiphop 20-25岁的女人喜欢dance 同理 #导入数据 import pandas as pd #决策树 from sklearn.tree import DecisionTreeClassifier music_data = pd.read_cs原创 2020-05-20 11:50:58 · 162 阅读 · 0 评论 -
Python学习笔记_04
机器学习 导入数据 清理数据 分割数据 创建模型 训练模型 做出预测 评估调整 安装Anaconda 网址:https://www.anaconda.com/products/individual 安装成功后,打开在Anaconda Prompt (anaconda),输入jupyter notebook 跳转到一个网址:http://localhost:8888/tree 点击 desktop–>new–>python3 先来个helloworld 导入一个数据集 www.kaggle.原创 2020-05-19 22:24:18 · 137 阅读 · 0 评论 -
Python学习笔记_02
Python的条件控制 is_hot = False is_cold = False if is_hot: print("It's a hot day") print("Drink plenty of water") elif is_cold: print("It's a cold day") print("Wear warm clothes") else: print("It's a lovely day") print("Enjoy your day") i原创 2020-05-18 23:52:59 · 162 阅读 · 0 评论 -
Python学习笔记_01
安装python和pycharm 1.hello world print("hello world") 2.基本数据类型 price = 10 #整数 rate = 6.9 # 浮点数 name = 'Gpower' #字符串 a = b = c = 1 #python 可以同时为多个变量赋值 3.字符串 3.1 输入、字符串的拼接 name = input('what is your name? ') print('Hi ' + name) -----原创 2020-05-18 16:33:51 · 185 阅读 · 0 评论