Discuss / Python / 刚刚发错了

刚刚发错了

Topic source

养生语

#1 Created at ... [Delete] [Delete and Lock User]

def product(星args): j=1 if len(args)==0: raise TypeError('没有数据') return for item in args: j=j * item return j

如果上面打星,两个星号都不能正常显示,所以,上面用汉字来代替


  • 1

Reply