06 2023 档案

摘要:一个简单的scrapy爬虫demo 爬取豆瓣top250的电影名称+电影口号 使用到持久化流程: 爬虫文件爬取到数据后,需要将数据封装到items对象中。 使用yield关键字将items对象提交给pipelines管道进行持久化操作。 settings.py配置文件中开启管道 同时完成多页爬取 【 阅读全文
posted @ 2023-06-28 01:26 J1nWan 阅读(140) 评论(0) 推荐(0) 编辑
摘要:## 定义参数 * dataroot - the path to the root of the dataset folder. We will talk more about the dataset in the next section. * workers - the number of wo 阅读全文
posted @ 2023-06-20 21:41 J1nWan 阅读(57) 评论(0) 推荐(0) 编辑
摘要:```python import torch import torch.nn as nn from torchvision import transforms from PIL import Image, ImageOps import numpy as np ``` ```python img = 阅读全文
posted @ 2023-06-20 12:10 J1nWan 阅读(132) 评论(0) 推荐(0) 编辑
摘要:# julia_Flux ### 1.导入Flux.jl和其他所需工具包 ```julia using Flux, MLDatasets, Statistics using Flux: onehotbatch, onecold, logitcrossentropy, params using MLD 阅读全文
posted @ 2023-06-07 16:05 J1nWan 阅读(171) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示