上一页 1 ··· 61 62 63 64 65 66 67 68 69 ··· 344 下一页
摘要: nums = [3,1,2]n=len(nums)for i in range(n-1): for j in range(n-... 阅读全文
posted @ 2022-08-19 22:57 luoganttcc 阅读(19) 评论(0) 推荐(0)
摘要: nums = [3,1,2]n=len(nums)for i in range(n-1): for j in range(n-... 阅读全文
posted @ 2022-08-19 22:57 luoganttcc 阅读(28) 评论(0) 推荐(0)
摘要: python 递归方式实现斐波那契数列 import time t1=time.time()def factorial(n): if n==1 or n==2: return 1 else: re... 阅读全文
posted @ 2022-08-19 22:57 luoganttcc 阅读(20) 评论(0) 推荐(0)
摘要: python 递归方式实现斐波那契数列 import time t1=time.time()def factorial(n): if n==1 or n==2: return 1 else: re... 阅读全文
posted @ 2022-08-19 22:57 luoganttcc 阅读(22) 评论(0) 推荐(0)
摘要: import time t1=time.time()def factorial(n): if n==1 or n==2: ... 阅读全文
posted @ 2022-08-19 22:57 luoganttcc 阅读(38) 评论(0) 推荐(0)
摘要: import time t1=time.time()def factorial(n): if n==1 or n==2: ... 阅读全文
posted @ 2022-08-19 22:57 luoganttcc 阅读(41) 评论(0) 推荐(0)
摘要: 递归方法求n! def jiec(n): if n==0: return 1 else: return n*jiec(n-1)ss=jiec(10)print(ss) 3628800 ... 阅读全文
posted @ 2022-08-19 22:57 luoganttcc 阅读(14) 评论(0) 推荐(0)
摘要: python 堆排序的两种实现 import heapq#-*- coding: UTF-8 -*-import numpy as npdef MakeHeap(a): for i in range(int(a.size / 2)... 阅读全文
posted @ 2022-08-19 22:57 luoganttcc 阅读(16) 评论(0) 推荐(0)
摘要: python 堆排序的两种实现 import heapq#-*- coding: UTF-8 -*-import numpy as npdef MakeHeap(a): for i in range(int(a.size / 2)... 阅读全文
posted @ 2022-08-19 22:57 luoganttcc 阅读(24) 评论(0) 推荐(0)
摘要: import heapq#-*- coding: UTF-8 -*-import numpy as npdef MakeHeap(a... 阅读全文
posted @ 2022-08-19 22:57 luoganttcc 阅读(21) 评论(0) 推荐(0)
上一页 1 ··· 61 62 63 64 65 66 67 68 69 ··· 344 下一页