[go: up one dir, main page]

Skip to content

AkaiNoCat/find_palindromes

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 

Repository files navigation

motto:Fun&Enjoy

author:AKai
date:2019-03-09 20:53:19
project:输出字符串中所有回文字
background:
	18年参加极客大赛的第四题,当时刚入python,
	花了1个小时才解出来,找到字符串中最长的回文字,
	心心念念了很久终于把它给收服.
def aline_find_Palindrome(a):
    return { string[i:i+n]:n for n in range(2,len(string)+1) for i in range(len(string)-n+1) if string[i:i+n] == string[i:i+n][::-1]}

About

输出字符串中所有回文字

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages