Skip to content

Instantly share code, notes, and snippets.

@xiaotangyuan
Last active August 29, 2015 14:01
Show Gist options
  • Save xiaotangyuan/a922d16bffad3fd2bac8 to your computer and use it in GitHub Desktop.
Save xiaotangyuan/a922d16bffad3fd2bac8 to your computer and use it in GitHub Desktop.
求约数
#注释
shu=10000
result=[a for a in range(1,shu+1) if shu%a==0]
print(result)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment