Discuss / Python / 关于使用reduce报错问题

关于使用reduce报错问题

Topic source

Artiver

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

如果各位下载的Python是3.7.2或更新的版本, reduce函数已经整合到functools了, 要使用它,在首行添加from functools import reduce

em....怎么交作业呀???


  • 1

Reply