摘要: write()传送的是ASCII的十进制的值(如65),而print()传送的是ASCII的文本(如A) 1、当参数是字符串时,两者效果相同。 因为write()先把字符文本转换成ASCII值,然后转译成ASCII文本,故与print()的效果相同 例如:print("abc")和write("ab 阅读全文
posted @ 2025-01-02 12:34 沭水之虾 阅读(107) 评论(0) 推荐(0) 编辑
摘要: 一、烧入固件:可以及时运行程序,方便学习编程 1、点击右下方弹出“配置解释器” 2、选择“安装或更新MicroPython 3、选择相应的端口和固件,烧入是按住”boot"键 4、py文件可以及时运行,保存在本地电脑,不能脱离thonny工作 二、烧入写好的程序,相对固定板子的用途。今后也可以改写 阅读全文
posted @ 2024-12-29 21:14 沭水之虾 阅读(410) 评论(0) 推荐(0) 编辑
摘要: 答案 [A-D]*^13解析*^13 使用替换功能,删除答案和解析两段 阅读全文
posted @ 2024-01-08 16:50 沭水之虾 阅读(71) 评论(0) 推荐(0) 编辑
摘要: \([0-9]{4}·*\) \(:代表"(" [0-9]{4}:代表四位年份 ·:代表点号 \):代表")" 点选下方通配符 阅读全文
posted @ 2024-01-08 15:43 沭水之虾 阅读(12) 评论(0) 推荐(0) 编辑
摘要: from pylab import mpl# 设置显示中文字体mpl.rcParams["font.sans-serif"] = ["SimHei"]#不显示fu负号问题plt.rcParams['axes.unicode_minus']=False以下内容chatgpt提供通过将plt.rcPar 阅读全文
posted @ 2023-08-04 23:49 沭水之虾 阅读(46) 评论(0) 推荐(0) 编辑
摘要: Sub 删除分节符和分页符1() ActiveDocument.Content.Find.Execute FindText:="^b", ReplaceWith:="", Replace:=wdReplaceAll '删除分节符 ActiveDocument.Content.Find.Execute 阅读全文
posted @ 2023-07-09 09:24 沭水之虾 阅读(639) 评论(0) 推荐(0) 编辑
摘要: ' 以下是按键精灵录制的内容 Rem kaishi'MessageBox "开始"Delay 1000FindPic 0,0,1780,300,"Attachment:\还剩余.bmp",0.9,intX,intYIf intX > 0 And intY > 0 Then 'MessageBox " 阅读全文
posted @ 2023-06-21 09:33 沭水之虾 阅读(53) 评论(0) 推荐(0) 编辑
摘要: Sub 学科网格式修正() '删除第二节内容 'MsgBox ActiveDocument.Sections.Count ActiveDocument.Sections(2).Range.Delete '删除节符号"^b",用替换功能实现 Set wd = ActiveDocument.Conten 阅读全文
posted @ 2023-01-31 23:28 沭水之虾 阅读(25) 评论(0) 推荐(0) 编辑
摘要: Sub 另存为PDF() s = ActiveDocument.Name i = InStrRev(s, ".") - 1 ActiveDocument.SaveAs2 filename:=ActiveDocument.Path & "\" & Left(s, i) & ".PDF", FileFo 阅读全文
posted @ 2023-01-27 22:12 沭水之虾 阅读(502) 评论(0) 推荐(0) 编辑
摘要: Sub 插入强化训练() ' ' 插入强化训练 宏 ' ' Selection.TypeText Text:="【】" Selection.MoveLeft unit:=wdCharacter, Count:=1 Selection.TypeText Text:="强化训练" '选择当前行 Sele 阅读全文
posted @ 2022-12-14 22:41 沭水之虾 阅读(44) 评论(0) 推荐(0) 编辑