- 博客(2)
- 收藏
- 关注
原创 python中global与nonloacl的区别
class Solution(object): def checkInclusion(self, s1, s2): a1 = 1 a2 = 2 def test(): global a1 nonlocal a2 a1 = 4 print(a1, a2) a1 = 3 a2 = 4 test()
2022-03-15 17:22:18
781
原创 关于raspberry pi基于bluetoothctl连接BLE低功耗蓝牙并进行数据传输
最近做项目遇到需使用树莓派连接低功耗蓝牙的功能,终于找到一个适合Ubuntu系统的蓝牙连接工具:bluetoothctl。首先,确保树莓派安装有bluetoothctl,具体安装步骤可参照以下链接:https://mcuoneclipse.com/2016/12/19/tutorial-ble-pairing-the-raspberry-pi-3-model-b-with-hexiwear/确保树莓派bluetoothctl安装完成后,启动:pi@raspberrypi: ~bluetoothct
2021-03-26 22:31:59
2236
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人