- 博客(3)
- 收藏
- 关注
原创 每日刷题【881】
class Solution: def numRescueBoats(self, people: List[int], limit: int) -> int: if people is None: return 0 people.sort() light = 0 heavy = len(people) - 1 result = 0 while light <= hea.
2021-11-01 12:48:45 47
原创 每日刷题【485】
class Solution(object): def findMaxConsecutiveOnes(self, nums): consecutive = 0 result = 0 for e in nums: if e == 1: consecutive += 1 else: result = max(consecutive,result.
2021-11-01 12:35:40 62
原创 pytorch自学P12-P16(b站up小土堆)[其一]
关于图片读写的操作 from torch.utils.data import Dataset from PIL import Image import os class Mydata(Dataset): def __init__(self, root_dir, label_dir): #根目录和标签目录合成path,获得图片路径地址 self.root_dir = root_dir self.label_dir = label_dir
2021-10-31 10:16:53 496
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人