1、字符串前加 u
后面字符串以 Unicode 格式 进行编码,一般用在中文字符串前面,防止因为源码储存格式问题,导致再次使用时出现乱码。
2、字符串前加 r
去掉反斜杠的转移机制。
3、字符串前加 b
前缀表示:后面字符串是bytes 类型。
4、字符串前加 f
以 f 开头表示在字符串内支持大括号内的 python 表达式
print(f'{name} done in {time.time() - t0:.2f} s')
输出:
processing done in 1.00 s
@沐风MWind 滑稽
装了什么驱动吗
要装这两个库
IRremote by shirriff, z3t0, ArminJo – v2.5.0
LiquidCrystal by Arduino, Adafruit – v1.0.7
白纸黑字更美观
用的什么品牌的SD卡,像是系统没刷好或者不兼容
换个 SFTP 工具试试看
一般智能一点的工具都会遍历进去删光内容最后再删目录的
装的东西太多了。树莓派 IO 又弱。。
boot分区这个是系统自动修改的分区名
如果刷写失败可以尝试这个教程里面的常见问题,格式化SD卡之后再刷系统:
https://shumeipai.nxez.com/2013/09/07/raspberry-pi-under-windows-system-installation-to-sd-card.html
再就是确认一下你用的这些系统是不是支持树莓派4B
参考这个里面的方法配置看看
https://talk.quwj.com/topic/2279
只有 kernel.img 没有了,其他的文件都在?
系统是官方系统吗。
通常情况是的
推荐用 Etcher
GPIO 提供的电流峰值大概在 1.5A(暂时没找到官方数据)
https://pinout.xyz/pinout/5v_power
USB 提供的电流值参考这里:
https://shumeipai.nxez.com/2017/12/11/configure-the-current-limit-of-the-raspberry-pi-usb-interface.html
评论区贴代码只能引用外部代码了。比如使用「页面」来贴入代码(支持Markdown)。
https://make.quwj.com/page/create
再在评论中附上页面的 URL。
因为评论内容有比较严的字数限制,贴不了多长的代码。权衡下来还是搁置加入贴代码的功能。
@沐风MWind 已经上了,可以自己买材料来 DIY,或者直接买组装好的成品。
http://link.nxez.com/buy/nxez-cube
小组排行榜 TOP 50 成员联系客服可以优惠:)
一般都要进系统开启一下 VNC 才可以使用
可能你的系统 VNC 默认打开了,这样的话就不需要再通过 SSH 设置了
@沐风MWind 哈哈,是的
The solution from this article worked for me:
sudo apt-get install pulseaudio-module-bluetooth
pactl load-module module-bluetooth-discover
Then delete the device from bluetooth devices and pair it again.
If it works, you can consider adding the second command to your startup settings, so that you don't have to run it again after every reboot.
If it doesn't work, try restarting pulseaudio:
pulseaudio -k
pulseaudio -D
https://askubuntu.com/questions/801404/bluetooth-connection-failed-blueman-bluez-errors-dbusfailederror-protocol-no/801669