python小code
昂亢伏特卜
这个作者很懒,什么都没留下…
展开
-
python 使用excel画图
使用pands 和 matplotlib。原创 2023-02-01 00:30:38 · 542 阅读 · 0 评论 -
跳动心型代码
【代码】跳动心型代码。原创 2022-11-15 12:35:32 · 464 阅读 · 0 评论 -
为什么报错? TypeError: object() takes no parameters
【代码】为什么报错?TypeError: object() takes no parameters原创 2022-11-05 15:33:26 · 168 阅读 · 0 评论 -
python---创建多个文件夹
python中创建多个文件夹原创 2022-08-05 15:21:15 · 1534 阅读 · 0 评论 -
找到字符串中最长的回文子串
如题:class Solution: def expandAroundCenter(self, s, left, right): while left >= 0 and right < len(s) and s[left] == s[right]: left -= 1 right += 1 return left + 1, right - 1 def longestPalindrome(self,原创 2021-12-20 20:54:18 · 244 阅读 · 0 评论 -
最长无重复字符的子串
返回最长子串长度 和最长子串class Solution: def length(self,s): start,res,cache,dic=0,0,{},{} for idx,c in enumerate(s): if c in cache and cache[c]>=start: start=cache[c]+1 cache[c]=idx els.原创 2021-12-20 20:45:52 · 40 阅读 · 0 评论