Python 档案 | PiCockpit https://picockpit.com/raspberry-pi/zh/类别/蟒蛇/ Sat, 25 Nov 2023 20:40:52 +0000 zh-HK 每小时 1 https://wordpress.org/?v=7.0.1 https://picockpit.com/raspberry-pi/wp-content/uploads/2024/07/cropped-new-plane-32x32.png Python 档案 | PiCockpit https://picockpit.com/raspberry-pi/zh/类别/蟒蛇/ 32 32 Python Dispatch:让 GIL 成为可选项 https://picockpit.com/raspberry-pi/zh/python-dispatch-making-the-gil-optional/ https://picockpit.com/raspberry-pi/zh/python-dispatch-making-the-gil-optional/#respond Tue, 01 Aug 2023 11:35:37 +0000 https://picockpit.com/raspberry-pi/?p=4508 指导委员会就 Python 的未来发表了一项重大声明。也就是说,他们决定在 CPython 中将全局解释器锁 (GIL) 作为可选项,并最终完全删除 GIL。这是一个将从根本上改变 Python 的重大决定。因此,在这篇文章中,我将介绍什么是 GIL、它的...

The post Python Dispatch: Making the GIL Optional appeared first on PiCockpit.

]]>
https://picockpit.com/raspberry-pi/zh/python-dispatch-making-the-gil-optional/feed/ 0
CPython、MicroPython和CircuitPython之间有什么区别? https://picockpit.com/raspberry-pi/zh/micropython-circuitpython-cpython-anyway%e4%b9%8b%e9%97%b4%e7%9a%84%e5%8c%ba%e5%88%ab%e6%98%af%e4%bb%80%e4%b9%88%ef%bc%9f/ https://picockpit.com/raspberry-pi/zh/micropython-circuitpython-cpython-anyway%e4%b9%8b%e9%97%b4%e7%9a%84%e5%8c%ba%e5%88%ab%e6%98%af%e4%bb%80%e4%b9%88%ef%bc%9f/#respond Tue, 18 Jul 2023 09:18:54 +0000 https://picockpit.com/raspberry-pi/?p=4076 CPython、MicroPython 和 CircuitPython 在许多工匠心中都占有重要地位。但它们之间的区别并不总是很明显。如果你是第一次接触微控制器,这些区别对于你理解代码中的问题会起到关键作用。因此,在本文中,我将...

The post What’s the difference between CPython, MicroPython, & CircuitPython anyway? appeared first on PiCockpit.

]]>
https://picockpit.com/raspberry-pi/zh/micropython-circuitpython-cpython-anyway%e4%b9%8b%e9%97%b4%e7%9a%84%e5%8c%ba%e5%88%ab%e6%98%af%e4%bb%80%e4%b9%88%ef%bc%9f/feed/ 0
使用Python REPL的9个技巧 https://picockpit.com/raspberry-pi/zh/9%e7%a7%8dpython%e6%9b%bf%e6%8d%a2%e6%8a%80%e5%b7%a7/ https://picockpit.com/raspberry-pi/zh/9%e7%a7%8dpython%e6%9b%bf%e6%8d%a2%e6%8a%80%e5%b7%a7/#respond Tue, 11 Jul 2023 12:27:49 +0000 https://picockpit.com/raspberry-pi/?p=4092 当然,树莓派中的 Pi 来自 Python,它是世界上最流行的编程语言之一,在工匠和创客中尤其受欢迎。在这篇文章中,我将为您介绍使用 Python REPL 的 9 个技巧和窍门--不过,如果您对 Python 不是很熟悉,也不用担心。

The post 9 Tricks with the Python REPL appeared first on PiCockpit.

]]>
https://picockpit.com/raspberry-pi/zh/9%e7%a7%8dpython%e6%9b%bf%e6%8d%a2%e6%8a%80%e5%b7%a7/feed/ 0
您应该为 Raspberry Pi 使用哪种编程语言? https://picockpit.com/raspberry-pi/zh/%e4%bd%a0%e5%ba%94%e8%af%a5%e7%94%a8%e4%bb%80%e4%b9%88%e7%bc%96%e7%a8%8b%e8%af%ad%e8%a8%80%e6%9d%a5%e4%bd%bf%e7%94%a8%e6%a0%91%e8%8e%93%e6%b4%be%ef%bc%9f/ https://picockpit.com/raspberry-pi/zh/%e4%bd%a0%e5%ba%94%e8%af%a5%e7%94%a8%e4%bb%80%e4%b9%88%e7%bc%96%e7%a8%8b%e8%af%ad%e8%a8%80%e6%9d%a5%e4%bd%bf%e7%94%a8%e6%a0%91%e8%8e%93%e6%b4%be%ef%bc%9f/#comments Thu, 13 Oct 2022 18:07:26 +0000 https://picockpit.com/raspberry-pi/?p=3113 如果您是 Raspberry Pi 的新手,您可能会发现自己正处于选择学习编程语言的十字路口。编程语言种类繁多,决定学习哪种语言将对您的工作产生深远影响。因此,让我们来看看您可以学习哪些语言。

The post Which programming language should you use for a Raspberry Pi? appeared first on PiCockpit.

]]>
https://picockpit.com/raspberry-pi/zh/%e4%bd%a0%e5%ba%94%e8%af%a5%e7%94%a8%e4%bb%80%e4%b9%88%e7%bc%96%e7%a8%8b%e8%af%ad%e8%a8%80%e6%9d%a5%e4%bd%bf%e7%94%a8%e6%a0%91%e8%8e%93%e6%b4%be%ef%bc%9f/feed/ 4
CircuitPython、Adafruit Feather RP2040 和 I2C https://picockpit.com/raspberry-pi/zh/circuitpython-adafruit-feather-rp2040-and-i2c/ https://picockpit.com/raspberry-pi/zh/circuitpython-adafruit-feather-rp2040-and-i2c/#comments Tue, 23 Nov 2021 19:23:31 +0000 https://picockpit.com/raspberry-pi/?p=1207 正如您可能从标题猜到的那样,本文将讨论 CircuitPython、Adafruit Feather RP2040 和 I2C 通信协议。RP2040 有两个 I2C 控制器--例如,当你想用相同的 I2C 地址运行两个 I2C 设备时,这就很好。在我的测试设置中,我有一块 Adafruit Feather RP2040 微控制器板、...

The post CircuitPython, Adafruit Feather RP2040, and I2C appeared first on PiCockpit.

]]>
https://picockpit.com/raspberry-pi/zh/circuitpython-adafruit-feather-rp2040-and-i2c/feed/ 3
在Raspberry Pi Pico上为MicroPython提供C语言扩展 https://picockpit.com/raspberry-pi/zh/c-extension-for-micropython-on-raspberry-pi-pico/ https://picockpit.com/raspberry-pi/zh/c-extension-for-micropython-on-raspberry-pi-pico/#comments Thu, 08 Apr 2021 14:26:05 +0000 https://picockpit.com/raspberry-pi/?p=774 这是一份关于如何在 Raspberry Pi Pico 上编写和运行 MicroPython 的基本 C 语言扩展的指南。我将介绍扩展 MicroPython 的原因、如何编写扩展模块、如何编译扩展模块以及如何在 Pico 上安装扩展模块。如果您想了解更多相关信息,请点击此处。

The post C extension for MicroPython on Raspberry Pi Pico appeared first on PiCockpit.

]]>
https://picockpit.com/raspberry-pi/zh/c-extension-for-micropython-on-raspberry-pi-pico/feed/ 8
Windows上的Raspberry Pi Pico和MicroPython https://picockpit.com/raspberry-pi/zh/raspberry-pi-pico-and-micropython-on-windows/ https://picockpit.com/raspberry-pi/zh/raspberry-pi-pico-and-micropython-on-windows/#comments Sat, 30 Jan 2021 15:11:05 +0000 https://picockpit.com/raspberry-pi/?p=623 本文回答了这个问题:如何在 Windows 上使用带有 MicroPython 的 Raspberry Pi Pico?我们还展示了如何在 Windows 8.1 上为 "Board CDC"(安装 MicroPython 后 Pico 将显示为 CDC)安装正确的驱动程序。(我们还将讨论 MicroPython 和 CircuitPython 之间的差异(如适用...

The post Raspberry Pi Pico and MicroPython on Windows appeared first on PiCockpit.

]]>
https://picockpit.com/raspberry-pi/zh/raspberry-pi-pico-and-micropython-on-windows/feed/ 10