摘要:
#作业2def printinfo(): print("-"*30)def numprint(num): i = 0 while i < num: printinfo() i += 1def addNums(a,b,c): return a + b +cdef averageNums(a,b,c): 阅读全文
摘要:
products = [["iphone",6888],["MacPro",14800],["小米6",2499],["Coffee",31],["Book",60],["Nike",699]]print("-"*5,"\t商品列表","-"*5)for i,x in enumerate(produ 阅读全文
摘要:
#7、随机数配合二维数组 做出一个 Offices里面随机出人名来import randomoffices = [[],[],[]]names = ["A","B","C","D","E","F","G"]for name in names: index = random.randint(0,2) 阅读全文