
python
BIG*BOSS
这个作者很懒,什么都没留下…
展开
-
【python】修改xml文件
例如Hadoop的hdfs-site.xml<?xml version="1.0" encoding="UTF-8"?><?xml-stylesheet type="text/xsl" href="configuration.xsl"?><!-- Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance原创 2021-02-08 15:51:04 · 1083 阅读 · 0 评论 -
【python爬虫百度图片】搜索并下载指定数量百度图片
网页分析1.搜索搜索的关键词是拼接在url里的,这个好办!2.分页查看网页源代码,发现imgurl在 ‘js’ 文本里,当然不是真正的js文件,哈哈。你会发现,只能获取30个已加载的imgurl,结果你只能下载这30张,怎么下载所有的?怎么下载大于30张?这是个问题!鼠标滚轮下滚,图片会加载,触发某事件,也触发的网页请求。F12调试网页,找到network,经过费力查找,我终于发现...原创 2019-12-07 12:31:51 · 2462 阅读 · 3 评论 -
【python】简单的车辆管理系统
class Car: name:str id:str year:str age:str area:str def __init__(self,name:str,id:str,year:str, age:str,area:str): self.name=name self.id=id self....原创 2019-12-04 20:59:52 · 4541 阅读 · 1 评论 -
【python】操作Excel表格
一、使用pandasimport pandas as pddf=pd.read_excel(r"C:\Users\Administrator\Desktop\col.xlsx")height,width=df.shape# print(height,width,type(df))# print(df)import numpy as npx=np.zeros((10,9))fo...原创 2019-12-04 20:58:03 · 278 阅读 · 0 评论 -
【python】worldcloud将图片转成单词组成的图片
安装worldcloud通过settings安装命令行安装pip install wordcloud -i https://mirrors.aliyun.com/pypi/simple/图片准备图片背景要为白色、或透明。如下:篮球巨星文本准备大段英文文章代码import wordcloudimport numpy as npfrom PIL import Imagei...原创 2019-12-04 20:52:39 · 718 阅读 · 0 评论