摘要:
主函数 main #include <REGX52.H> #include "Delay.h" #include "Timer0.h" unsigned char count = 0; unsigned char pwm; void Timer0() interrupt 1 { // 每隔0.1ms 阅读全文
摘要:
a = b'\xE6\x88\x91\xE6\x98\xAF\xE8\xAF\xB7\xE6\xB1\x82'print(a.decode('utf-8').encode('utf-8'))print(a.decode('gbk').encode('gbk'))print(a.decode(enco 阅读全文
摘要:
A = [[0.5, 0.2, 0.3], [0.3, 0.5, 0.2], [0.2, 0.3, 0.5]]B = [[0.5, 0.5], [0.4, 0.6], [0.7, 0.3]]pi = [0.2, 0.4, 0.4]def a1(): t = 0 a = [] for i in ran 阅读全文
摘要:
# 状态转移矩阵A = [[0.5, 0.2, 0.3], [0.3, 0.5, 0.2], [0.2, 0.3, 0.5]]# 观测概率矩阵B = [[0.5, 0.5], [0.4, 0.6], [0.7, 0.3]]# 观测序列pi = [0.2, 0.4, 0.4]def a1(): t = 阅读全文
摘要:
import randomclass EM(): def __init__(self): # 设状态值概率 self.t = 0.6 self.q = 0.5 def E(self, i, j): pA = (self.t ** i) * ((1 - self.t) ** j) pB = (self 阅读全文
摘要:
A = [[0.5, 0.2, 0.3], [0.3, 0.5, 0.2], [0.2, 0.3, 0.5]]B = [[0.5, 0.5], [0.4, 0.6], [0.7, 0.3]]pi = [0.2, 0.4, 0.4]a1 = [1, 1, 1]t = [0,0,1]def q(a1,t 阅读全文
摘要:
参考来源:https://blog.csdn.net/qq_40828914/article/details/120895412 https://developer.aliyun.com/article/1003832 # 用socket实现一个简单的服务器,可以通过浏览器来访问import soc 阅读全文
摘要:
参考来源:https://jingyan.baidu.com/article/9f7e7ec082aab12e2815549c.html 1,创建字符 2,魔法棒选中字符 3,图层栅格化 4,编辑描边 5,删除原图层 6,油漆桶填色 阅读全文
摘要:
# 1,求观测序列的概率# 2,已知状态序列求观测序列# 3,已知观测序列求模型参数# 设状态值概率# pA=0.6# pB=0.5class EM(): def __init__(self): self.t = 0.6 self.q = 0.5 def E(self, i, j): pA = (s 阅读全文
摘要:
#pyttsx3文字转语音import pyttsx3engine2 = pyttsx3.init()while True: content = input('请输入播放内容:') engine2.say(content) engine2.runAndWait() #文字转语音from win32c 阅读全文