NameError: name 'tcplink' is not defined

Silvaco Atlas新手入门:从安装到第一个半导体器件仿真(附DeckBuild配置) 本文为Silvaco Atlas新手提供了一份从软件安装、DeckBuild环境配置到完成第一个半导体器件仿真的实战指南。通过构建一个经典的PN结二极管案例,详细讲解了Atlas仿真语句的语法、核心命令顺序以及结果调试与可视化方法,帮助初学者快速上手并理解TCAD仿真流程。 阅读详情

Python 3.6.6 (v3.6.6:4cf1f54eb7, Jun 27 2018, 03:37:03) [MSC v.1900 64 bit (AMD64)] on win32
Type “copyright”, “credits” or “license()” for more information.

from turtle import *

RESTART: C:\Program Files (x86)\Microsoft Visual Studio\Shared\Python36_64\tree.py

RESTART: C:/Program Files (x86)/Microsoft Visual Studio/Shared/Python36_64/rect.py
Traceback (most recent call last):
File “C:/Program Files (x86)/Microsoft Visual Studio/Shared/Python36_64/rect.py”, line 57, in
draw_tree(l, 4)
File “C:/Program Files (x86)/Microsoft Visual Studio/Shared/Python36_64/rect.py”, line 41, in draw_tree
draw_tree(l, level + 1)
File “C:/Program Files (x86)/Microsoft Visual Studio/Shared/Python36_64/rect.py”, line 41, in draw_tree
draw_tree(l, level + 1)
File “C:/Program Files (x86)/Microsoft Visual Studio/Shared/Python36_64/rect.py”, line 41, in draw_tree
draw_tree(l, level + 1)
[Previous line repeated 1 more times]
File “C:/Program Files (x86)/Microsoft Visual Studio/Shared/Python36_64/rect.py”, line 47, in draw_tree
draw_tree(l, level + 1)
File “C:/Program Files (x86)/Microsoft Visual Studio/Shared/Python36_64/rect.py”, line 41, in draw_tree
draw_tree(l, level + 1)
File “C:/Program Files (x86)/Microsoft Visual Studio/Shared/Python36_64/rect.py”, line 47, in draw_tree
draw_tree(l, level + 1)
File “C:/Program Files (x86)/Microsoft Visual Studio/Shared/Python36_64/rect.py”, line 41, in draw_tree
draw_tree(l, level + 1)
File “C:/Program Files (x86)/Microsoft Visual Studio/Shared/Python36_64/rect.py”, line 41, in draw_tree
draw_tree(l, level + 1)
File “C:/Program Files (x86)/Microsoft Visual Studio/Shared/Python36_64/rect.py”, line 37, in draw_tree
lt(s)
File “”, line 5, in lt
turtle.Terminator

RESTART: C:/Program Files (x86)/Microsoft Visual Studio/Shared/Python36_64/rect.py

RESTART: C:/Program Files (x86)/Microsoft Visual Studio/Shared/Python36_64/rect.py

RESTART: C:/Program Files (x86)/Microsoft Visual Studio/Shared/Python36_64/wjx.py

RESTART: C:/Program Files (x86)/Microsoft Visual Studio/Shared/Python36_64/wjx.py

print(‘I’m ok.’)
I’m ok.

print(‘I’m learning\nPython.’)
I’m learning
Python.

print(’\\n\’)


SyntaxError: invalid syntax

ord(‘A’)
65

ord(‘中’)
20013

chr(66)
‘B’

chr(25991)
‘文’
SyntaxError: invalid syntax

ord(‘A’)
65
SyntaxError: multiple statements found while compiling a single statement

ord(‘中’)
20013

chr(66)
SyntaxError: unexpected indent

ord(‘中’)
20013

导入socket库:

import socket

创建一个socket:

s = socket.socket(socket.AF_INET, socket.SOCK_STREAM)

建立连接:

s.connect((‘www.sina.com.cn’, 80))
SyntaxError: multiple statements found while compiling a single statement

import socket
s = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
s.connect((‘www.sina.com.cn’, 80))
s.send(b’GET / HTTP/1.1\r\nHost: www.sina.com.cn\r\nConnection: close\r\n\r\n’)
60

RESTART: C:/Program Files (x86)/Microsoft Visual Studio/Shared/Python36_64/sina.py
HTTP/1.1 302 Moved Temporarily

Server: nginx

Date: Fri, 03 May 2019 10:44:03 GMT

Content-Type: text/html

Content-Length: 154

Connection: close

Location: https://www.sina.com.cn/

X-Via-CDN: f=edge,s=ctc.nanjing.ha2ts4.92.nb.sinaedge.com,c=221.225.76.253;

X-Via-Edge: 1556880243347fd4ce1dd7c5e66ca354cde61

RESTART: C:/Program Files (x86)/Microsoft Visual Studio/Shared/Python36_64/server.py
Traceback (most recent call last):
File “C:/Program Files (x86)/Microsoft Visual Studio/Shared/Python36_64/server.py”, line 1, in
s = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
NameError: name ‘socket’ is not defined

RESTART: C:/Program Files (x86)/Microsoft Visual Studio/Shared/Python36_64/server.py
Waiting for connection…
Traceback (most recent call last):
File “C:/Program Files (x86)/Microsoft Visual Studio/Shared/Python36_64/server.py”, line 16, in
t = threading.Thread(target=tcplink, args=(sock, addr))
NameError: name ‘threading’ is not defined

RESTART: C:/Program Files (x86)/Microsoft Visual Studio/Shared/Python36_64/server.py
Waiting for connection…

RESTART: C:/Program Files (x86)/Microsoft Visual Studio/Shared/Python36_64/server.py
Waiting for connection…
Traceback (most recent call last):
File “C:/Program Files (x86)/Microsoft Visual Studio/Shared/Python36_64/server.py”, line 16, in
t = threading.Thread(target=tcplink, args=(sock, addr))
NameError: name ‘threading’ is not defined

RESTART: C:/Program Files (x86)/Microsoft Visual Studio/Shared/Python36_64/server.py
Waiting for connection…
Traceback (most recent call last):
File “C:/Program Files (x86)/Microsoft Visual Studio/Shared/Python36_64/server.py”, line 16, in
t = threading.Thread(target=tcplink, args=(sock, addr))# abc
NameError: name ‘threading’ is not defined

RESTART: C:/Program Files (x86)/Microsoft Visual Studio/Shared/Python36_64/server.py
Traceback (most recent call last):
File “C:/Program Files (x86)/Microsoft Visual Studio/Shared/Python36_64/server.py”, line 4, in
import thread
ModuleNotFoundError: No module named ‘thread’

RESTART: C:/Program Files (x86)/Microsoft Visual Studio/Shared/Python36_64/server.py
Waiting for connection…
Traceback (most recent call last):
File “C:/Program Files (x86)/Microsoft Visual Studio/Shared/Python36_64/server.py”, line 16, in
t = threading.Thread(target=tcplink, args=(sock, addr))# abc
NameError: name ‘tcplink’ is not defined

RESTART: C:/Program Files (x86)/Microsoft Visual Studio/Shared/Python36_64/server.py
Traceback (most recent call last):
File “C:/Program Files (x86)/Microsoft Visual Studio/Shared/Python36_64/server.py”, line 5, in
import tcplink
ModuleNotFoundError: No module named ‘tcplink’

RESTART: C:/Program Files (x86)/Microsoft Visual Studio/Shared/Python36_64/server.py
Waiting for connection…
Traceback (most recent call last):
File “C:/Program Files (x86)/Microsoft Visual Studio/Shared/Python36_64/server.py”, line 17, in
t = threading.Thread(target=tcplink, args=(sock, addr))# abc
NameError: name ‘tcplink’ is not defined

RESTART: C:/Program Files (x86)/Microsoft Visual Studio/Shared/Python36_64/server.py
Waiting for connection…
Traceback (most recent call last):
File “C:/Program Files (x86)/Microsoft Visual Studio/Shared/Python36_64/server.py”, line 17, in
t = threading.Thread(target=tcplinking, args=(sock, addr))
NameError: name ‘tcplinking’ is not defined

RESTART: C:/Program Files (x86)/Microsoft Visual Studio/Shared/Python36_64/server.py
Waiting for connection…
Traceback (most recent call last):
File “C:/Program Files (x86)/Microsoft Visual Studio/Shared/Python36_64/server.py”, line 17, in
t = threading.Thread(target=tcp, args=(sock, addr))
NameError: name ‘tcp’ is not defined

RESTART: C:/Program Files (x86)/Microsoft Visual Studio/Shared/Python36_64/server.py
Waiting for connection…
Traceback (most recent call last):
File “C:/Program Files (x86)/Microsoft Visual Studio/Shared/Python36_64/server.py”, line 17, in
t = threading.Thread(target=tcplink, args=(sock, addr))
NameError: name ‘tcplink’ is not defined

=============================== RESTART: Shell ===============================

RESTART: C:/Program Files (x86)/Microsoft Visual Studio/Shared/Python36_64/server.py
Waiting for connection…
Traceback (most recent call last):
File “C:/Program Files (x86)/Microsoft Visual Studio/Shared/Python36_64/server.py”, line 17, in
t = threading.Thread(target=tcplink, args=(sock, addr))
NameError: name ‘tcplink’ is not defined

RESTART: C:/Program Files (x86)/Microsoft Visual Studio/Shared/Python36_64/server.py
Waiting for connection…
Traceback (most recent call last):
File “C:/Program Files (x86)/Microsoft Visual Studio/Shared/Python36_64/server.py”, line 17, in
t = threading.Thread(target=client, args=(sock, addr))
NameError: name ‘client’ is not defined

RESTART: C:/Program Files (x86)/Microsoft Visual Studio/Shared/Python36_64/server.py
Waiting for connection…

RESTART: C:/Program Files (x86)/Microsoft Visual Studio/Shared/Python36_64/server.py
Traceback (most recent call last):
File “C:/Program Files (x86)/Microsoft Visual Studio/Shared/Python36_64/server.py”, line 5, in
import tcp
ModuleNotFoundError: No module named ‘tcp’

RESTART: C:/Program Files (x86)/Microsoft Visual Studio/Shared/Python36_64/server.py
Traceback (most recent call last):
File “C:/Program Files (x86)/Microsoft Visual Studio/Shared/Python36_64/server.py”, line 5, in
import tcplink
ModuleNotFoundError: No module named ‘tcplink’

RESTART: C:/Program Files (x86)/Microsoft Visual Studio/Shared/Python36_64/server.py
Waiting for connection…
Traceback (most recent call last):
File “C:/Program Files (x86)/Microsoft Visual Studio/Shared/Python36_64/server.py”, line 18, in
t = threading.Thread(target=tcplink, args=(sock, addr))
NameError: name ‘tcplink’ is not defined

RESTART: C:\Program Files (x86)\Microsoft Visual Studio\Shared\Python36_64\tree.py
Traceback (most recent call last):
File “C:\Program Files (x86)\Microsoft Visual Studio\Shared\Python36_64\tree.py”, line 57, in
draw_tree(l, 4)
File “C:\Program Files (x86)\Microsoft Visual Studio\Shared\Python36_64\tree.py”, line 42, in draw_tree
draw_tree(l, level + 1)
File “C:\Program Files (x86)\Microsoft Visual Studio\Shared\Python36_64\tree.py”, line 42, in draw_tree
draw_tree(l, level + 1)
File “C:\Program Files (x86)\Microsoft Visual Studio\Shared\Python36_64\tree.py”, line 42, in draw_tree
draw_tree(l, level + 1)
[Previous line repeated 2 more times]
File “C:\Program Files (x86)\Microsoft Visual Studio\Shared\Python36_64\tree.py”, line 48, in draw_tree
draw_tree(l, level + 1)
File “C:\Program Files (x86)\Microsoft Visual Studio\Shared\Python36_64\tree.py”, line 50, in draw_tree
lt(s)
File “”, line 5, in lt
turtle.Terminator

RESTART: C:/Program Files (x86)/Microsoft Visual Studio/Shared/Python36_64/server.py
Waiting for connection…
Traceback (most recent call last):
File “C:/Program Files (x86)/Microsoft Visual Studio/Shared/Python36_64/server.py”, line 18, in
t = threading.Thread(target=t, args=(sock, addr))
NameError: name ‘t’ is not defined

RESTART: C:/Program Files (x86)/Microsoft Visual Studio/Shared/Python36_64/server.py
Waiting for connection…
Traceback (most recent call last):
File “C:/Program Files (x86)/Microsoft Visual Studio/Shared/Python36_64/server.py”, line 18, in
t = threading.Thread(target=tcplink, args=(sock, addr))
NameError: name ‘tcplink’ is not defined

【保姆级】联想服务器 Ubuntu 装机:RAID 0/1/5/10 从原理到配置(新手也能一次成) 联想服务器RAID配置指南:Ubuntu系统适配方案 摘要: 联想服务器采用LSI MegaRAID硬件控制器,支持RAID0/1/10/5四种阵列模式。RAID0提供最高性能但无冗余,适合临时数据;RAID1完全镜像确保数据安全,推荐用于系统盘;RAID10兼顾性能与冗余,适合数据库等高要求场景;RAID5平衡容量与成本,适用于文件服务器。配置可通过本地BIOS(Ctrl+R)或XCC远程管理完成,Ubuntu安装时可自动识别虚拟磁盘。注意事项包括:使用同型号硬盘、监控重建进度、避免SSD与机械盘混用等。 阅读详情

相关推荐

Mac上Office合法安装与激活全指南:2021/2024/M365区别解析

Office是微软办公套件的核心产品,其在macOS平台的部署逻辑与Windows截然不同——不依赖传统密钥激活,而是基于Microsoft账户与设备标识的云端绑定机制。理解这一原理,是解决‘无法验证开发者’‘打不开’‘功能受限’等常见问题的前提。Office 2021代表永久许可模型,Office 2024 LTSC面向企业离线场景,Microsoft 365则是持续订阅服务,三者在授权验证方式、更新策略与系统兼容性上存在本质差异。实际应用中,需结合macOS版本、芯片架构(Intel/Apple Sil

weixin_33491377的博客 1681

Python3 将十六进制数据解析为 UTF-8 字符

目标 将十六进制数据解析为 UTF-8 字符。 环境 Python 3.6.6 (v3.6.6:4cf1f54eb7, Jun 27 2018, 03:37:03) [MSC v.1900 64 bit (AMD64)] on win32 方法一 hexstring = b'\xe7\x8e\xa9\xe5\xae\xb6\x33\x38\x35' hexstring.d...

Hustlion 的技术博客 1万+

手把手教你用Python+GDAL处理0.5米吉林一号卫星影像(附代码)

本文详细介绍了如何使用Python和GDAL处理吉林一号0.5米高分辨率卫星影像,包括环境配置、数据预处理、分辨率融合、植被指数计算及地物分类等关键步骤。通过实战代码示例,帮助开发者高效处理大尺寸遥感数据,解决资源崩溃和算法选择问题,提升遥感影像分析能力。

weixin_30892037的博客 136

Python基础

Python基础Typora基本使用文本标题插入图片表格环境安装基础三种运行方式注释java注释方式python注释方式print()输出函数input函数进入指定目录:快捷方式合理的创建标题,有助于目录的生成新内容数据类型python中常见的数据类型变量变量的调用两值交换同时赋值常量dir()函数数字复数复数属性表达式与运算符Python算术运算符 Typora 对应的格式文件:Markdown...

w1359414的博客 399

微生物16S数据上传NCBI的SRA库

本篇内容仅包括:俺自己的实验收集了淡水、淡水沉积物、海水、海草附着微生物样品,测序所得的Fastq格式数据,在文章投稿发表时被要求数据需上传NCBI的SRA库,得到一个PRJNA2347899这样子的IDs。仅解决了这个上传过程!

Xf_Niu的博客 7449

Augustus手动安装教程

本文记载了如何结合conda手动安装Augustus

m0_65437087的博客 1260

closecmd python,cmd运行程序时如何终止python socket服务端程序的操作

用python写了一个socket服务端的程序,但是启动之后由于监听连接的是一个死循环,所以不知道怎样在cmd运行程序的时候将其终止。#!/usr/bin/python# -*- coding: utf-8 -*-import socketimport threading, timedef tcplink(sock,addr):print('Accept new connection from %...

weixin_32428571的博客 1032

Raspberry Pi 4 ARM Trusted Firmware 技术解析

摘要: 本文详细介绍了在树莓派4(Raspberry Pi 4)上移植ARM可信固件(TF-A)的实现方案与安全考量。该移植专注于BL31功能,作为非安全世界(如Linux内核)的启动桥梁,支持加载EL2级别程序。文章分析了启动流程、内存映射设计,并对比了RPi3与RPi4的关键差异,指出当前版本缺乏硬件级安全内存保护的局限性。此外,提供了构建指南、配置说明及设备树自动修补的实现细节,强调通过config.txt简单配置即可启动64位内核。该方案充分利用树莓派原有GPU固件流程,兼顾兼容性与简易性。

Linux内核架构师 934

python-V

异常处理与调试 1. 错误 •有的错误是程序编写有问题造成的,比如本来应该输出整数结果输出了字符串,这种错误我们通常称之为 bug,bug 是必须修复的。 •有的错误是用户输入造成的,比如让用户输入 email 地址,结果得到一个空字符串,这种错误可以通过检查用户输入来做相应的处理。 •还有一类错误是完全无法在程序运行过程中预测的,比如写入文件的时候,磁盘满了,写不进去了,这类错误

wcczb的博客 4164

2026终极反反爬:Canvas/WebGL/字体指纹全维度伪装,应对浏览器检测实战指南

本文分享了2026年浏览器指纹检测现状及全维度伪装方案。当前反爬系统采用多维度联合指纹检测,重点针对硬件级(WebGL、Canvas)、系统级(字体、CPU)和行为级(鼠标移动)指纹。作者设计了一个独立的指纹伪装引擎,包含真实设备指纹库、指纹生成器和统一注入层,通过JS沙箱隔离实现伪装。核心方案包括:Canvas指纹通过真实设备渲染差异添加微偏移;WebGL指纹完整劫持上下文返回真实显卡参数;字体指纹劫持measureText方法模拟不同系统字体宽度。该方案实测可连续运行一个月零封号,解决了传统方法易被检测

专注于Python爬虫开发,分享爬虫技巧、项目实战与反爬经验,使用Scrapy、BeautifulSoup等工具,解决数据抓取难题。 936

AgentScope Java 2.0 项目实战: 从零构建自己的个人AI助手“小龙虾“

本文系统介绍如何基于Spring Boot WebFlux、React 18和TypeScript,从零搭建一个本地化的个人AI助手管理平台——AgentScope Paw。项目支持多Agent创建与管理、SSE流式对话、工作区文件CRUD、技能市场、子智能体孵化、AI辅助起草Agent配置等核心功能,并深度集成钉钉、企业微信、飞书、GitHub等IM通道。

program哲学 1452

关于socket收发信息与多线程,多进程问题总结(后续补充)

在关闭套接字后可以对list1中的套接字进行删除,同时因为对list1进行修改,对应的list_name中数据也需要进行修改(list_name中以字典形式存放了用户IP,name,和 list1中的对应的编号),这用就不会出现上述错误了。当客户端申请关闭后,服务器同意关闭,双方结束通讯,但套接字仍保留在list1中未被删除,当有人在发送消息的时候,服务器就会遍历列表,向列表中的每个客户端发送消息,当发送到已经断开连接的套接字时就会产生。

lkxd194257的博客 1199

解决com.alibaba.druid.pool.GetConnectionTimeoutException: wait millis 60027, active 20, maxActive 20错误

全网详细解决com.alibaba.druid.pool.GetConnectionTimeoutException: wait millis 60027, active 20, maxActive 20, creating 0, createErrorCount 24的错误

念兮为美 417

NameError: name 'xrange' is not defined

报错误的原因是因为我的Python版本是3.6的,xrange是Python 2.x的函数,经过查找资料发现Python 3.x中range函数与之对应,所以将用到xrange的地方换为range即可。...

FJY_sunshine的博客 387

霍尼韦尔SoftMaster使用说明

霍尼韦尔SoftMaster使用说明

VB摄像头监控

该VB模块可对摄像头捕获的画面进行录像等,可在创建的窗口进行控制

python hello world

python hello world

qq 117791303 224

怀旧版电脑GBC模拟器

再现原版GBC掌机的界面,电脑运行连游戏界面都一样大小,很怀旧,很真实,(英文版)强烈推荐,很小的文件,很难才找到的。

python3全局函数解析

Python3 内置函数 注意:有些函数与 Python2.x 变化不大,会直接跳转到 Python2.x 教程下的内置函数说明,大家要注意下哈。 abs() dict() help() min() s...

qq_44597960的博客 267

jdk-8u144-linux-x64.tar.gz.

该资源为搭建Linux系统Java环境用,资源的后缀为tar.gz格式的压缩包

python网络数据采集豆瓣_《python网络数据采集》案例代码问题

问题:小白初学,《python网络数据采集》案例代码问题,其中这段代码中的“links”在运行中出现了NameError: name 'links' is not defined 的问题,刚刚以为是我编写出现了问题,但后来复制了书中的代码运行也是这样的问题,求解,谢谢。代码:from urllib.request import urlopenfrom bs4 import BeautifulSou...

weixin_39788451的博客 146

windows10下python开发环境配置

环境:Windows 10 1.python安装 下载python3.6.6 https://www.python.org/ 运行python-3.6.6-amd64.exe–>勾选Install launcher for all users和Add Python 3.6 to PATH,并选择Customize installation–>默认全选并选择Next–>全选并设置安...

AdeCary的博客 1001

NameError: name ‘xxx‘ is not defined问题总结

最近在使用python写实验遇到这个问题: NameError: name ‘xxx’ is not defined 在学习python或者在使用python的过程中这个问题大家肯定都遇到过,在这里我就这个问题总结以下几种情况: 错误NameError: name ‘xxx’ is not defined总结 情况一:要加双引号(" ")或者(’ ')而没加 情况二:字符缩进格式的问题 情况三:if __name__=='__main__' : 没有和class类进行对齐 情况四:NameError: na

le000426的博客 15万+

python3.6.6怎么运行_python3.6文件的执行的三种方法

原标题:python3.6文件的执行的三种方法Python目前写好的代码常用的执行方式有3种1:cmd模式下执行好处:直观,输入一行,执行一行,发现问题容易第一时间发现,立即纠正。坏处:因为python语言有很严格的缩进规定,导致有时一个小小的空格或者输入法没有切换成英文的情况下输入的全角字母或者标点符号导致自己的程序卡在那里。 比如我们执直接行加法运算。那是太方便了。比如直接计算2+3我们输入后...

weixin_39740283的博客 1430

pytorch安装-Windows(pip install失败)

环境 windows 10 python 64位(只有3.5 3.6 3.7三个版本会支持) 步骤 点击下面的链接,进行下载 pytorch的版本 https://www.lfd.uci.edu/~gohlke/pythonlibs/#pytorch 前面的两种上是需要安装cuda的。对于我们这种新手来说暂时还用不到这个版本。 我选的是第四个,因为我的Python版本是3.6的。 下载下来之...

gc.collect() 3万+

win10安装python3

本次安装3.6版本 1. https://www.python.org/downloads/ 版本自选。 2.Windows x86-64 executable installer 选择executable即可(web版本是通过网络下载结果一样,不用纠结)。 3.安装: (因为我已经安装完了,图示盗用的。)选项如图即可,Customize install->一直next即可。最后cl...

xuchengshantttt的博客 1万+

【亲测免费】 Python 3.6.4 资源文件下载

Python 3.6.4 资源文件下载 去发现同类优质开源项目:https://gitcode.com/ 简介 本仓库提供 Python 3.6.4 版本的资源文件下载。Python 3.6.4 是一个广泛使用的编程语言版本,适用于各种开发需求。 资源描述 Python 3.6.4 是一个功能强大的编程语言版本,具有丰富的库和工具支持。它适用于多种操作系统,包括 Windows、macOS 和 L...

gitblog_09788的博客 453

python 3.6.6_Python v3.6.6 32位 英文官方安装版

python是一门跨平台的脚本语言,python规定了一个python语法规则,实现了python语法的解释程序就成为了python的解释器,我们用的比较多的是c版本的python,也就是使用c语言实现的python解释器,除此之外还有使用java实现的jython和使用.net实现的 ironpython,这些实现可以使python用户充分利用己有的java及.net资源.Python 3.7 ...

weixin_39800112的博客 201

Python函数调用出现NameError: name ‘xxx‘ is not defined的解决办法

原因: 函数里用的是局部变量,从而函数调用结束后会被销毁。如果不声明是全局变量,那么就会报错:(注意灰色字体注释的地方) def load_data(): from keras.datasets import mnist # global train_image, train_lable , test_image, test_lable (train_image, train_lable), (test_image, test_lable) = mnist.load_data.

风的博客 7万+

爬虫超时报错socket.timeout: timed out/NameError: name ‘socket‘ is not defined

问题一:socket.timeout: timed out 源代码: import urllib.request#获取一个get请求 import urllib.parse #获取一个pos请求 import urllib.error headers = { 'User-Agent': 'Mozilla/5.0 (Windows NT 6.3; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/91.0.4472.114 Sa

the_beginner的博客 9394
上一篇: python学习之绘图
下一篇: TypeError: a bytes-like object is required, not 'str'
评论 1
成就一亿技术人!
拼手气红包6.0元
还能输入1000个字符
 
 条评论被折叠 查看
添加红包

请填写红包祝福语或标题

个

红包个数最小为10个

元

红包金额最低5元

当前余额3.43元 前往充值 >
需支付:10.00元
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

蜀山量化策略程序

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付元
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值