基于CNN的 手势图片识别 网上搜的一个用手比划数字的数据库,自己算变做了一个CNN玩玩mport numpy as npfrom skimage import ioimport tensorflow as tfbatch_size=64data_x=[]data_y=[]import osfrom PIL import Imagefor filename in os.listdir("C:\\U...
Leetcode 学习笔记 初学 5 最长回文子串class Solution: def longestPalindrome(self, s: str) -> str: k=len(s) longeststr='' longestlen=0 c = [[0 for i in range(k)] for i in range(k)] for...
Leetcode 学习笔记 初学 4 寻找两个有序数组的中位数class Solution: def findMedianSortedArrays(self, nums1: List[int], nums2: List[int]) -> float: nums3=nums1+nums2 nums3.sort() m=len(nums1) n=len(nu...
Leetscode 学习笔记 初学 3 无重复字符最长子串class Solution: def lengthOfLongestSubstring(self, s: str) -> int: c=[] count=0 n=len(s) for i in range(n): if s[i] not in c: ...
Leetcode 学习笔记 初学 2 两数相加class Solution: def addTwoNumbers(self, l1: ListNode, l2: ListNode) -> ListNode: re=ListNode(0) r=re carry=0 while (l1 or l2): x=l1.val if l1 e...
Leetcode 学习笔记 初学 1 两数之和,字典法class Solution: def twoSum(self, nums: List[int], target: int) -> List[int]: n=len(nums) lookup={} for i in range(0,n): tmp=target-nums[i] ...