2020年8月7日

摘要: def Fibonacci(self, n): ''' #题目描述:大家都知道斐波那契数列,现在要求输入一个整数n,请你输出斐波那契数列的第n项(从0开始,第0项为0,第1项是1)。n<=39 #解题思路:利用dp[i]=dp[i-1]+dp[i-2] #题目描述:我们可以用2*1的小矩形横着或者竖 阅读全文

posted @ 2020-08-07 17:29 PongorPeo 阅读(201) 评论(0) 推荐(0)


2020年8月6日

摘要: # -*-coding:utf-8 -*- import time from functools import wraps import random def timecount(func): ''' #时间统计 :param func: :return: ''' @wraps(func) def 阅读全文

posted @ 2020-08-06 18:00 PongorPeo 阅读(153) 评论(0) 推荐(0)


2020年3月10日

摘要: # 1、求出1-99之间的和 sum = 0 for i in range(100): sum = sum + i print(sum) # 2、正序排序下列列表 a = [1, 12, 16, 19, 6, 4, 2, 66, 33, 87] # 代码 len = len(a) for i in 阅读全文

posted @ 2020-03-10 18:40 PongorPeo 阅读(446) 评论(0) 推荐(0)


2019年5月14日

摘要: ###查看用户 SELECT DISTINCT CONCAT('User: ''',user,'''@''',host,''';') AS query FROM mysql.user; ###查看数据库运行时间 show global status like 'uptime'; ##数据库已使用连接 阅读全文

posted @ 2019-05-14 11:26 PongorPeo 阅读(168) 评论(0) 推荐(0)


博客园  ©  2004-2026
浙公网安备 33010602011771号 浙ICP备2021040463号-3