René's URL Explorer Experiment


Title: Python 零基础入门(6/6):TCP/UDP 网络编程与打包 | wistbean | wistbean

Open Graph Title: Python 零基础入门(6/6):TCP/UDP 网络编程与打包

X Title: Python 零基础入门(6/6):TCP/UDP 网络编程与打包

Description: 通过可运行示例掌握 Python Socket TCP/UDP 编程,理解客户端与服务端通信,并学会用 PyInstaller 打包 exe。

Open Graph Description: 通过可运行示例掌握 Python Socket TCP/UDP 编程,理解客户端与服务端通信,并学会用 PyInstaller 打包 exe。

X Description: 通过可运行示例掌握 Python Socket TCP/UDP 编程,理解客户端与服务端通信,并学会用 PyInstaller 打包 exe。

Keywords:

Mail addresses
wistbean.bb@gmail.com

Opengraph URL: https://wistbean.github.io/python-network-programming.html

Generator: Hexo 3.9.0

direct link

Domain: wistbean.org


Hey, it has json ld scripts:
{
  "@context": "https://schema.org",
  "@type": "BlogPosting",
  "headline": "Python 零基础入门(6/6):TCP/UDP 网络编程与打包",
  "description": "通过可运行示例掌握 Python Socket TCP/UDP 编程,理解客户端与服务端通信,并学会用 PyInstaller 打包 exe。",
  "author": {
    "@type": "Person",
    "name": "wistbean"
  },
  "publisher": {
    "@type": "Organization",
    "name": "wistbean"
  },
  "datePublished": "2026-03-26T11:25:00+08:00",
  "dateModified": "2026-03-26T12:00:00+08:00",
  "mainEntityOfPage": "https://wistbean.org/python-network-programming.html",
  "inLanguage": "zh-CN"
}
{
  "@context": "https://schema.org",
  "@type": "FAQPage",
  "mainEntity": [
    {
      "@type": "Question",
      "name": "TCP 和 UDP 在入门阶段怎么选?",
      "acceptedAnswer": {
        "@type": "Answer",
        "text": "要求可靠传输(顺序、重传)选 TCP;追求低延迟且可容忍丢包时选 UDP。"
      }
    },
    {
      "@type": "Question",
      "name": "本地 socket 示例连不上通常是什么原因?",
      "acceptedAnswer": {
        "@type": "Answer",
        "text": "常见是端口被占用、服务端未先启动、地址写错(127.0.0.1 与局域网 IP 混用)。"
      }
    },
    {
      "@type": "Question",
      "name": "PyInstaller 打包后运行闪退怎么排查?",
      "acceptedAnswer": {
        "@type": "Answer",
        "text": "先在命令行启动 exe 看报错,再检查资源路径与第三方依赖是否被正确打包。"
      }
    }
  ]
}

google-site-verificationbcJVGqEGcBIay29szBsswzqYxY3qUzWuvu1hfad3-08
theme-color#B5963F
og:typearticle
og:site_namewistbean
og:localezh-CN
og:updated_time2026-03-26T02:30:00.000Z
twitter:cardsummary

Links:

javascript:;
https://wistbean.org/
Python零基础入门教程 https://wistbean.org/python-tutorial.html
Python爬虫教程 https://mp.weixin.qq.com/mp/appmsgalbum?__biz=Mzg2NzYyNjg2Nw==&action=getalbum&album_id=2448798954764255234#wechat_redirect
加入我的VIP https://vip.fxxkpython.com/?page_id=18
关于我 https://mp.weixin.qq.com/s/m9LVoUdcLTO0YpQom5jjIA
javascript:;
javascript:;
javascript:;
javascript:;
pythonhttps://wistbean.org/categories/python/
1. 学习目标速览https://wistbean.org/python-network-programming.html#学习目标速览
2. 章节导航https://wistbean.org/python-network-programming.html#章节导航
3. 1. TCP 客户端示例https://wistbean.org/python-network-programming.html#1-TCP-客户端示例
4. 2. TCP 服务端示例https://wistbean.org/python-network-programming.html#2-TCP-服务端示例
5. 3. UDP 示例https://wistbean.org/python-network-programming.html#3-UDP-示例
6. 4. 打包为 exehttps://wistbean.org/python-network-programming.html#4-打包为-exe
7. 学习路线闭环https://wistbean.org/python-network-programming.html#学习路线闭环
8. 学习 FAQhttps://wistbean.org/python-network-programming.html#学习-FAQ
8.1. TCP 和 UDP 在入门阶段怎么选?https://wistbean.org/python-network-programming.html#TCP-和-UDP-在入门阶段怎么选?
8.2. 本地 socket 示例连不上通常是什么原因?https://wistbean.org/python-network-programming.html#本地-socket-示例连不上通常是什么原因?
8.3. PyInstaller 打包后运行闪退怎么排查?https://wistbean.org/python-network-programming.html#PyInstaller-打包后运行闪退怎么排查?
9. 系列文章导航https://wistbean.org/python-network-programming.html#系列文章导航
pythonhttps://wistbean.org/categories/python/
/python-tutorial.htmlhttps://wistbean.org/python-tutorial.html
https://wistbean.org/python-network-programming.html#学习目标速览
跑通 TCP 客户端与服务端示例https://wistbean.org/python-network-programming.html#lesson6-tcp-client
理解 UDP 的最小可用写法https://wistbean.org/python-network-programming.html#lesson6-udp
掌握 PyInstaller 打包基础流程https://wistbean.org/python-network-programming.html#lesson6-packaging
https://wistbean.org/python-network-programming.html#章节导航
1. TCP 客户端示例https://wistbean.org/python-network-programming.html#lesson6-tcp-client
2. TCP 服务端示例https://wistbean.org/python-network-programming.html#lesson6-tcp-server
3. UDP 示例https://wistbean.org/python-network-programming.html#lesson6-udp
4. 打包为 exehttps://wistbean.org/python-network-programming.html#lesson6-packaging
https://wistbean.org/python-network-programming.html#1-TCP-客户端示例
https://wistbean.org/python-network-programming.html#2-TCP-服务端示例
https://wistbean.org/python-network-programming.html#3-UDP-示例
https://wistbean.org/python-network-programming.html#4-打包为-exe
https://wistbean.org/python-network-programming.html#学习路线闭环
/python-tutorial.htmlhttps://wistbean.org/python-tutorial.html
https://wistbean.org/python-network-programming.html#学习-FAQ
https://wistbean.org/python-network-programming.html#TCP-和-UDP-在入门阶段怎么选?
https://wistbean.org/python-network-programming.html#本地-socket-示例连不上通常是什么原因?
https://wistbean.org/python-network-programming.html#PyInstaller-打包后运行闪退怎么排查?
https://wistbean.org/python-network-programming.html#系列文章导航
总览:Python3 零基础入门教程https://wistbean.org/python-tutorial.html
第一篇:安装与第一个程序https://wistbean.org/python-quickstart-installation.html
第二篇:变量、数据类型与运算符https://wistbean.org/python-basic-syntax-data-types.html
第三篇:条件、循环与函数https://wistbean.org/python-control-flow-functions.html
第四篇:模块、面向对象与异常处理https://wistbean.org/python-oop-exceptions.html
第五篇:数据结构与文件 IOhttps://wistbean.org/python-io-data-structures.html
第六篇:TCP/UDP 网络编程与打包https://wistbean.org/python-network-programming.html
wistbean https://wistbean.github.io/python-network-programming.html
wistbean https://wistbean.github.io
pythonhttps://wistbean.org/tags/python/
教程https://wistbean.org/tags/教程/
网络编程https://wistbean.org/tags/网络编程/
http://service.weibo.com/share/share.php?url=https://wistbean.github.io/python-network-programming.html&title=《Python 零基础入门(6/6):TCP/UDP 网络编程与打包》 — wistbean&pic=https://wistbean.github.io/img/avatar.jpg
javascript:;
http://connect.qq.com/widget/shareqq/index.html?url=https://wistbean.github.io/python-network-programming.html&title=《Python 零基础入门(6/6):TCP/UDP 网络编程与打包》 — wistbean&source=wistbean
https://www.facebook.com/sharer/sharer.php?u=https://wistbean.github.io/python-network-programming.html
https://twitter.com/intent/tweet?text=《Python 零基础入门(6/6):TCP/UDP 网络编程与打包》 — wistbean&url=https://wistbean.github.io/python-network-programming.html&via=https://wistbean.github.io
https://plus.google.com/share?url=https://wistbean.github.io/python-network-programming.html
javascript:;
Prev Python 零基础入门(2/6):变量、数据类型与运算符 https://wistbean.org/python-basic-syntax-data-types.html
Next Python3 零基础入门教程:从安装到实战 https://wistbean.org/python-tutorial.html
https://wistbean.org/atom.xml
署名-知识 4.0 (CC BY-NC-SA 4.0)国际协议 | 转载请注明链接出处https://creativecommons.org/licenses/by-nc-sa/4.0/deed.zh
肯定会|wistbeanhttps://wistbean.github.io/
通往Python高手之路https://fxxkpython.com
搬瓦工优惠码https://www.bwh8.net/aff.php?aff=32874
vultr优惠码https://www.vultr.com/?ref=7532860
javascript:;
http://service.weibo.com/share/share.php?url=https://wistbean.github.io/python-network-programming.html&title=《Python 零基础入门(6/6):TCP/UDP 网络编程与打包》 — wistbean&pic=https://wistbean.github.io/img/avatar.jpg
javascript:;
http://connect.qq.com/widget/shareqq/index.html?url=https://wistbean.github.io/python-network-programming.html&title=《Python 零基础入门(6/6):TCP/UDP 网络编程与打包》 — wistbean&source=wistbean
https://www.facebook.com/sharer/sharer.php?u=https://wistbean.github.io/python-network-programming.html
https://twitter.com/intent/tweet?text=《Python 零基础入门(6/6):TCP/UDP 网络编程与打包》 — wistbean&url=https://wistbean.github.io/python-network-programming.html&via=https://wistbean.github.io
https://plus.google.com/share?url=https://wistbean.github.io/python-network-programming.html
javascript:;
https://wistbean.org/{path}

Viewport: width=device-width, initial-scale=1, maximum-scale=1


URLs of crawlers that visited me.