摘要: 代码 from transitions import Machine # 定义类 class Matter(object): pass model = Matter() # 状态定义 states=['New', 'Ready', 'Waiting', 'Running','Terminated'] 阅读全文
posted @ 2021-11-27 20:20 20211423袁艺 阅读(46) 评论(0) 推荐(0) 编辑
摘要: 作业目标 实现小学四则运算 代码 import random import math import fractions question = [] answer = [] #整数运算 def first(question,ans): symbol = random.choice(['+','-',' 阅读全文
posted @ 2021-11-27 14:02 20211423袁艺 阅读(11) 评论(0) 推荐(0) 编辑