当前位置:首页 > watrt 第4页
watrt

watrt 管理员

暂无介绍

217 篇文章 7 次评论

Python内置函数

watrt10个月前 (07-27)Python2120
Python内置函数
以下是 Python 中的全部内置函数,并列出了它们的作用和参数说明。请注意,以下列出的内置函数是基于 Python 3.9 版本。abs(): 返回一个数的绝对值。参数:abs(x)all(): 如果可迭代对象中的所有元素都为 True,则返回 True。参数:all(iterable)any(): 如果可迭代对象中的任何元素为 True,则返回 True。参数:any(iterable)ascii(): 返回一个包含 ASCII 转义字符的字符串表示。参数:ascii(object)bin(...

arduino esp32开发板安装困难解决方法

watrt11个月前 (06-26)C/C++2710
arduino esp32开发板安装困难解决方法
最近想使用arduino来编辑一下esp32固件,结果出师不利,IDE迟迟安装不好。下面提供一下解决方法供大家参考。我使用的是arduino是1.8.19版,在新版本上没有尝试过。但是思路应该差不多吧。首先在在arduino IDE中设置乐鑫的附加开发板的地址:https://dl.espressif.com/dl/package_esp32_index.json stm32:http://dan.drown.org/stm32duino/package_STM32duino_index.jso...

micropython 连接到mqtt

watrt12个月前 (05-31)Wpython2950
micropython 连接到mqtt
from umqtt.simple import MQTTClient from machine import Pin import ujson import urequests import network import time SERVER = "www.028sd.net" CLIENT_ID = "e...

micropython 实现文件下载保存到本地

watrt12个月前 (05-31)Wpython3150
micropython 实现文件下载保存到本地
import sys import gc import ussl import usocket gc.collect() debug = False index_urls = ["https://micropython.org/pi", "https://pypi.org/pypi"] install_path = None c...

micropython 实现tar 文件解包

watrt12个月前 (05-31)Wpython2960
micropython 实现tar 文件解包
import upip_utarfile as tar import os def run(src,dest_dir):   t = tar.TarFile(src)   if not dest_dir in os.listdir():     os.mkdir(dest_dir)  ...

网页定时任务windows服务解决方法

watrt1年前 (2023-05-08).NET3020
网页定时任务windows服务解决方法
在项目中需要后台运行一个定时任务,周期性的触发事件。我使用vs2015写了一个简单的服务,事定时访问网址以下是Service1.cs代码using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Diagnostics; using System.Linq; using...

python使用requests库下载文件

watrt1年前 (2023-04-20)Python2990
python使用requests库下载文件
import os import requests def downfile(url): try: url=url.split("@")[0].split("?")[0] urlfile=url.split("/")[-1] print(urlfile) except Exception as e: print("地址不正确...

C# 使用串口编程例子

watrt1年前 (2023-04-11).NET4640
C# 使用串口编程例子
使用C#调用com控件来与ESP32通信 打发用的IDE是:SharpDevelop 5.1/*  * 由SharpDevelop创建。  * 用户: xk100  * 日期: 2023/4/7  * 时间: 11:04  *   * 要改变这种模板请点击 工具|选项|代码编写|编辑标准头文件  */ using...