问题遇到的现象和发生背景
检查了所有内容,包是导入的,怎么会出缩进错误呢
问题相关代码,请勿粘贴截图
File "D:/code/python/python_deeplearning_limu/test.py", line 2, in
import torch
File "C:\Users\zzx\anaconda3\envs\MyDeepLearning\lib\site-packages\torch_init.py", line 705, in
import torch.utils.data
File "C:\Users\zzx\anaconda3\envs\MyDeepLearning\lib\site-packages\torch\utils\data_init.py", line 1, in
from torch.utils.data.sampler import
File "C:\Users\zzx\anaconda3\envs\MyDeepLearning\lib\site-packages\torch\utils\data\sampler.py", line 69
return len(self.data_source)
IndentationError: unexpected indent
运行结果及报错内容
我的解答思路和尝试过的方法
我想要达到的结果
正常运行