用户:
HookF查看:159 回复:11 评论:12 创建时间:2022-02-11T23:44:01
我就是个菜鸟 pygame不会 numpy不会 scipy不会 requests不会 selenium会一点点 driver=WebDriver.chrome() driver.get("https://www.喵") driver.find_element(By.ID,"kw").send_key("一加一等于几\n") tkinter会一点点 importtkinterasTK main=TK.Tk() main.title("一个窗口") TK.Label(main,text="一段文字").place(x=0,y=0) win+R cmd python-mpydoc-p(端口号) 浏览器上 localhost:1234可以查看帮助文档
坚强的象牙螺0A9mrequests会一点点 importrequests requests.get('htt'+'ps:www.tropicaltidbits.com')
点赞1
评论
为什么要用加号连接URL呢,而且放在t和p之间,似乎也不太对劲,我用selenium是因为不会交post表单
防屏蔽
'htt'+'ps://www.tropicaltidbits.com'
那是headers和params
get("喵喵喵.喵喵喵")
申浩南pygame会 importpygame,sys pygame.init() screen=pygame.display.set_mode((500,500)) whileTrue: foreinpygame.event.get(): ife==pygame.QUIT: pygame.quit() sys.exit() requests会一点 importrequests importos importtime importrandom print("\t\tAI人脸批量下载器\n图片来自https://thispersondoesnotexist.com/生成\n\t\t\t批量下载器作者:申浩南\n"+"-"*50) path=str(time.ctime(time.time())).split(":")[0]+str(random.randint(1000000,99999999)) url="https://thispersondoesnotexist.com/image" open("a.png","wb") x=input("请输入用于存储图片的文件夹名称(不提供则随机生成)\n") ifx!="": path=x j=int(input("请输入要下载的数量\n")) try: os.mkdir(path) except: path=str(time.ctime(time.time())).split(":")[0]+str(random.randint(1000000,99999999)) os.mkdir(path) print("0%") foriinrange(j): resp=requests.get(url,timeout=30) wit喵en(f"{path}{os.sep}{i+1}.png",mode="wb")asf: f.write(resp.content) print(str(100/j*(i+1))+"%")
点赞0
评论
我提个建议啊,为了方便最好加上from pygame.locals import *。就可以方便地使用里面的Rect类和Color类了!
伴雪纷飞pyside2,turtle,pillow,nltk,base64, urllib,
requests,bs4,jieba,matplotlib,PyInstaller,try, pipenv,djiango,arcade,qrcode,webbrowser,easygui,pywin32
只记得这么多了
点赞0
评论
大部分时候第一方库就满足了
会的内置库:tkinter,re,zipfile,pprint,click,os,__future__,itertools,string,random,time,datetime,math
一缕余晖复活tk会(基础玩意),requests也就几个函数(会),bs4(会点吧),lxml.xpath(语法熟练就算会),re(简简单单),pygame(会一点点皮毛,不是人用的模块),threading(不会有人不懂这东西吧),numpy(会比较多了,但忘了(不是,panda(也忘了(战术装傻
点赞0
评论
tkinter,threading,re不都是内置库吗