shu=10000result=[a for a in range(1,shu+1) if shu%a==0]print(result)#该片段来自于http://www.codesnippet.cn/detail/250220148787.html
来源: http://www.codesnippet.cn/detail/250220148787.html