检测

python三种方法检测变位词Anagram

python class AnagramDetection: # 先对两个字符串进行list化 # 对字符串对应的两个list进行排序 # 依次比较字符是否匹配 def anagramSolution1(self, s1, s2): ...

php检测时间格式

php public function is Date($text){ $pattern = '/[\d]{4}-[\d]{1,2}-[\d]{1,2}\s[\d]{1,2}:[\d]{1,2}:[\d]{1,2}/'; if(pre...