def nexta(str, root): if str == "": messagebox.askokcancel('提示框', '不能输入空字符串') if str != "": print(str) root.destroy() a_isTrue = a.main() if a_isTrue == 1: print() b.main() c.main()
def post(self): datafromserver = simplejson.loads(self.request.body) nodes = datafromserver[0] links = datafromserver[1] agents = datafromserver[2] source = datafromserver[3] c.readModel(datafromserver) code = c.main() # init() # createnodes() # createlinks() # final() # print "\n\n\n" self.response.out.write(code)
def test_main(self, _, _n, _m, _k, _a, _b, expected): self.assertEquals(main(_n, _m, _k, _a, _b), expected)
def main(): for num in range(3): #代码运行次数 c.main()
from c import main repetir = 1 while repetir != 0: main() print "Si desea repetir marque 1 si no marque 0." repetir = int(raw_input("Desea repetir este proceso:")) while repetir > 1: repetir = int(raw_input("Marque como se le indica arriba ANIMAL:"))
def main(): b.main() c.main() print('In d.py main()')
def test_main(self, _, _n, expected): self.assertEqual(main(_n), expected)