#4.10.1的代碼def PrintList(oList): if isinstance(oList,list): oLen = len(oList) Temp = oList[0:-1] oStr = '' for i in range(len(Temp)): t = Temp[i] + ', ' oStr += t return oStr + 'and ' + oList[-1] else: return 'Error't = ['apple','banana','tofu','cat']print PrintList(t)
網(wǎng)站導(dǎo)航
- zblogPHP模板zbpkf
- zblog免費模板zblogfree
- zblog模板學(xué)習(xí)zblogxuexi
- zblogPHP仿站zbpfang