- 博客(3)
- 收藏
- 关注
原创 python leetcode 两数之和 一行代码
python leetcode 两数之和 一行代码不考虑复杂度运行时间class Solution(object): def twoSum(self, nums, target): """ :type nums: List[int] :type target: int :rtype: List[int] """ # 就增加了一行: return([[x,y] for x in rang
2020-11-27 10:19:25
137
原创 python 海龟 希尔伯特曲线双递归绘图
python 海龟 希尔伯特曲线双递归绘图示意图代码运行示意图这个递归在从0阶到1阶的过程中依然成立。0阶只有一个箭头方向,没有长度,所以可以pass;1阶左(右)旋图就是简单的u形(n形)的样子。代码from turtle import *#左旋def hilL(n): if n==0: pass if n>0: right(90) hilR(n-1) forward(l) left(
2020-10-11 11:25:25
1955
1
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人