自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(12)
  • 收藏
  • 关注

原创 springboot + mybatis-plus 报错Property ‘sqlSessionFactory‘ or ‘sqlSessionTemplate‘ are required

springboot + mybatis-plus 报错Property ‘sqlSessionFactory’ or ‘sqlSessionTemplate’ are required。

2023-04-05 18:27:49 528

原创 springboot后端无法获取session

使用 HttpServletRequest中的`springboot后端无法获取session。

2023-04-05 15:30:22 872 1

原创 python实现链串

class LinkNode: def __init__(self,d=None): self.data = d self.next = Noneclass LinkString: def __init__(self): self.head = LinkNode() self.size = 0 def StrAssign(self,s): #创建串 p = self.he

2021-11-16 21:33:26 692

原创 python实现顺序串

MaxSize = 100class SqString(): def __init__(self,size=0): self.data = [None]*MaxSize self.size = 0 def StrAssign(self,str): # 创建串 for i,item in enumerate(str): self.data[i] = item s

2021-11-15 22:20:25 1789

原创 数据可视化:matplotlib玩转画图(饼图)

小白学画图放码过来import pandas as pdimport matplotlib.pyplot as plts=pd.read_excel('c:\\users\\86198\\表格.xlsx',index_col='Field')print(s)s[2016].sort_values(ascending=True).plot.pie(fontsize=8,startangle=-270)#顺时针排序你,起始点为-270度plt.title('xuesheng',fontweigh

2021-06-02 22:42:30 187 3

原创 爬虫笔记:爬取财经

小白学习爬虫:爬取财经放码过来import requestsfrom bs4 import BeautifulSoupurl='https://finance.sina.com.cn/'html=requests.get(url)html.encoding='utf8'soup=BeautifulSoup(html.text,'lxml')lis=soup.select('.m-p1-m-blk2 .m-p1-mb2-list.m-list-container ul li a ')for

2021-06-02 14:39:17 189

原创 数据可视化:matplotlib玩转图画(柱状图)

matplotlib绘图放码过来1.柱状图a.pandas绘图import pandas as pdimport matplotlib.pyplot as pltb = pd.read_excel("c:\\users\\86198\\表格.xlsx")print(b)b.sort_values(by='Number',inplace=True,ascending=False)b.plot.bar(x="Field",y="Number",color='blue',title="stude

2021-05-30 23:18:26 230 1

原创 爬虫笔记:爬取音乐

放码过来不做解释import requestsimport jsonimport osimport rere_hash = re.compile('"Hash":"(.*?)"',re.S|re.I)url ='https://www.kugou.com/yy/html/rank.html'html = requests.get(url)html.encoding='utf8'hashs = re_hash.findall(html.text)url ='https://wwwapi.

2021-05-30 20:06:44 280

原创 pandas解决excel表格

**pandas玩转Excel**1 .创建表格import pandas as pd #导入pandas模块df = pd.DataFrame({'id':[1,2,34],'name':['G','E','F']}) #加入数据df.set_index("id") #将“id”设置为索引df.to_excel("C:/users/86198/表格.xlsx") #保存表格2 .读取文件...

2021-05-30 13:17:34 240

原创 爬虫学得好,牢饭少不了

爬虫笔记一.基本流程1 获取网页的URL地址2 分辨请求网页的办法3 查看网页的源代码4 撰写爬虫请求头5 解析页面内容6 存储信息到本地

2021-05-25 19:44:18 671

原创 解决常见报错,学习更进一步

小白学python常见报错类别含义SyntaError出现了非法(错误)语法AttributeError属性错误NameError访问的变量名不存在IoError打开不存在文件即输出输入错误KeyError使用映射不存在的关键字IndexError索引错误即索引不存在或超出TypeError类型错误IndentationError缩进错误ValueError

2021-04-18 13:20:25 121

原创 转义字符,不可不会

小白学python转义字符转义字符解释\(在尾行)续行符\\反斜杠\’单引号\"双引号\a响铃(警告)\b退格\000空\n换行\r回车\f换页

2021-04-18 11:56:41 56

空空如也

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除