- 博客(3)
- 资源 (1)
- 收藏
- 关注
原创 最长回文子串:中心扩散法python实现
class Solution: def longestPalindrome(self, s: str) -> str: lenStr = len(s) maxLen = 0 tempLen = 0 maxStr = '' leftDigit = 0 rightDigit = 0 if lenStr == 1 or s =='': return s .
2022-01-09 23:11:05
474
原创 python编程快速上手:6.7表格打印
tableData = [ ['apples', 'oranges', 'cherries', 'banana'], ['Alice', 'Bob', 'Carol', 'David'], ['dogs', 'cats', 'moose', 'goose'] ] def printTable(table): maxStr = 1 for i in range(len(table)): .
2021-10-15 20:49:46
231
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人