摘要:
代码 from transitions import Machine # 定义类 class Matter(object): pass model = Matter() # 状态定义 states=['New', 'Ready', 'Waiting', 'Running','Terminated'] 阅读全文
摘要:
作业目标 实现小学四则运算 代码 import random import math import fractions question = [] answer = [] #整数运算 def first(question,ans): symbol = random.choice(['+','-',' 阅读全文