View charcode-trans.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#要循环所有子文件夹,请使用bat指令 | |
#for /d %i in (*.*) do (python charcode-trans.py %i) | |
import os | |
import sys | |
import codecs | |
import chardet | |
import sys | |
#将路径下面的所有文件,从原来的格式变为UTF-8的格式 |
View vwf_generate_code.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#author : Jerry(2020065604) | |
#自动生成最后一次硬件实验的波形图文件。只需要编译即可。 | |
''' | |
配置部分 | |
''' | |
#在此处填入指令 | |
codes = [0x00,0x10,0x0c,0x10,0x0d,0x20,0x0c,0x30,0x0c,0x40,0x03,0x00,0x14,0x43,0x00,0x00] |