def add(x,y): return x+y def test(): print ('1+2=%d'% add(1,2)) if __name__=='__main__': print test()#加上print就输出1+2=3,None。为什么有None???二删掉print就好了???
慕的地6079101
asdhjhg
田心枫
相关分类