说明:Common.cs: 代码如下: using System; using System.Collections.Generic; using System.Text; namespace DelegateAndEvent.App_Code { public class Common { //定义全局变量. public static string txt = “”; #region 定义方法 public string HelloCSharp(string name) { txt += “he <weixin_38504417> 在 上传 | 大小:40960
说明:下面是实现代码
# coding:utf-8
import time, serial
from struct import *
import binascii
file = open('E:\\1.bin', 'rb')
i = 0
while 1:
c = file.read(1)
# 将字节转换成16进制;
ssss = str(binascii.b2a_hex(c))[2:-1]
print(str(binascii.b2a_hex(c))[2:-1])
if not <weixin_38537541> 在 上传 | 大小:26624