![](https://img-blog.csdnimg.cn/20201014180756916.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
Python
SSSLLL1118
我要当全栈工程师哈哈哈哈
展开
-
IndentationError: expected an indented block如何处理
在做到cs231n的assignment1的第一个KNN作业时,跑如下代码反的时候: def compute_distances_one_loop(self, X): """ Compute the distance between each test point in X and each training point in self.X_train using a single loop over the test data.原创 2020-09-09 15:46:12 · 1152 阅读 · 0 评论 -
‘list‘ object is not callable”错误处理
我是在写cs231n的assignment1的时候,遇到这个错误的具体发生错误的代码如下:# Subsample the data for more efficient code execution in this exercisenum_training = 5000mask = list(range(num_training))X_train = X_train[mask]y_train = y_train[mask]num_test = 500mask = list(range(nu原创 2020-09-08 19:24:15 · 764 阅读 · 2 评论 -
一个用爬虫爬取豆瓣top250电影信息的Python程序
这是我学习网课(https://www.bilibili.com/video/BV12E411A7ZQ/?p=39)的课堂练习。分享出来供大家学习和交流。代码的注释算是比较齐全的:#!/usr/bin/env python3# -*- coding: utf-8 -*-"""Created on Wed Aug 26 10:41:56 2020@author: shili"""from bs4 import BeautifulSoupimport reimport urllib.原创 2020-09-05 13:20:31 · 697 阅读 · 0 评论 -
转载一篇有关Python字符串单引号双引号以及多个双引号的文章
https://blog.csdn.net/woainishifu/article/details/76105667转载 2018-04-22 14:13:52 · 1478 阅读 · 0 评论