• 博客园logo
  • 会员
  • 众包
  • 新闻
  • 博问
  • 闪存
  • 赞助商
  • HarmonyOS
  • Chat2DB
    • 搜索
      所有博客
    • 搜索
      当前博客
  • 写随笔 我的博客 短消息 简洁模式
    用户头像
    我的博客 我的园子 账号设置 会员中心 简洁模式 ... 退出登录
    注册 登录
 






天生自然

 
 

Powered by 博客园
博客园 | 首页 | 新随笔 | 联系 | 订阅 订阅 | 管理
上一页 1 ··· 270 271 272 273 274 275 276 下一页

2018年12月3日

吴裕雄 实战PYTHON编程(6)
摘要: import matplotlib.pyplot as plt plt.rcParams['font.sans-serif']=['Simhei']plt.rcParams['axes.unicode_minus']=False listx1 = [1,5,7,9,13,16]listy1 = [1 阅读全文
posted @ 2018-12-03 22:06 吴裕雄 阅读(197) 评论(0) 推荐(0)
 
吴裕雄 实战PYTHON编程(5)
摘要: text = '中华'print(type(text))#<class 'str'>text1 = text.encode('gbk')print(type(text1))#<class 'bytes'>print(text1)#b'\xd6\xd0\xbb\xaa'text2 = text1.de 阅读全文
posted @ 2018-12-03 22:02 吴裕雄 阅读(228) 评论(0) 推荐(0)
 
吴裕雄 实战PYTHON编程(4)
摘要: import hashlib md5 = hashlib.md5()md5.update(b'Test String')print(md5.hexdigest()) import hashlib md5 = hashlib.md5(b'Test String').hexdigest()print(m 阅读全文
posted @ 2018-12-03 22:00 吴裕雄 阅读(209) 评论(0) 推荐(0)
 
吴裕雄 实战python编程(3)
摘要: import requests from bs4 import BeautifulSoup url = 'http://www.baidu.com'html = requests.get(url)sp = BeautifulSoup(html.text, 'html.parser')print(sp 阅读全文
posted @ 2018-12-03 21:54 吴裕雄 阅读(459) 评论(0) 推荐(0)
 
吴裕雄 实战python编程(2)
摘要: from urllib.parse import urlparse url = 'http://www.pm25x.com/city/beijing.htm'o = urlparse(url)print(o) print("scheme={}".format(o.scheme)) # httppri 阅读全文
posted @ 2018-12-03 21:48 吴裕雄 阅读(243) 评论(0) 推荐(0)
 
吴裕雄 实战python编程(1)
摘要: import sqlite3 conn = sqlite3.connect('E:\\test.sqlite') # 建立数据库联接cursor = conn.cursor() # 建立 cursor 对象 #新建一个数据表sqlstr='CREATE TABLE IF NOT EXISTS tab 阅读全文
posted @ 2018-12-03 21:39 吴裕雄 阅读(261) 评论(0) 推荐(0)
 
吴裕雄 数据挖掘与分析案例实战(15)——DBSCAN与层次聚类分析
摘要: # 导入第三方模块import pandas as pdimport numpy as npimport matplotlib.pyplot as pltimport seaborn as snsfrom sklearn import clusterfrom sklearn.datasets.sam 阅读全文
posted @ 2018-12-03 21:31 吴裕雄 阅读(2587) 评论(0) 推荐(0)
 
吴裕雄 数据挖掘与分析案例实战(14)——Kmeans聚类分析
摘要: # 导入第三方包import pandas as pdimport numpy as np import matplotlib.pyplot as pltfrom sklearn.cluster import KMeansfrom sklearn import metrics # 随机生成三组二元正 阅读全文
posted @ 2018-12-03 21:25 吴裕雄 阅读(4057) 评论(0) 推荐(1)
 
吴裕雄 数据挖掘与分析案例实战(13)——GBDT模型的应用
摘要: # 导入第三方包import pandas as pdimport matplotlib.pyplot as plt # 读入数据default = pd.read_excel(r'F:\\python_Data_analysis_and_mining\\14\\default of credit 阅读全文
posted @ 2018-12-03 21:10 吴裕雄 阅读(1783) 评论(0) 推荐(0)
 
吴裕雄 数据挖掘与分析案例实战(12)——SVM模型的应用
摘要: import pandas as pd # 导入第三方模块from sklearn import svmfrom sklearn import model_selectionfrom sklearn import metrics # 读取外部数据letters = pd.read_csv(r'F:\ 阅读全文
posted @ 2018-12-03 21:03 吴裕雄 阅读(1304) 评论(0) 推荐(0)
 
上一页 1 ··· 270 271 272 273 274 275 276 下一页