diff options
Diffstat (limited to 'progs/a595.py')
-rw-r--r-- | progs/a595.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/progs/a595.py b/progs/a595.py new file mode 100644 index 0000000..e4ede5e --- /dev/null +++ b/progs/a595.py @@ -0,0 +1,4 @@ +import heapq
+def larg_nnum(list1,n):
+ largest=heapq.nlargest(n,list1)
+ return largest
\ No newline at end of file |