摘要: Given a string, your task is to count how many palindromic substrings in this string. The substrings with different start indexes or end indexes are c 阅读全文
posted @ 2017-11-28 20:22 Yancea 阅读(129) 评论(0) 推荐(0) 编辑
摘要: 1.打开PyCharm,选择File--Settings 2.依次选择Editor Code Style-- File and Code Templates Python Script 3.编辑内容 可以根据需要添加相应的信息 显示如下: 阅读全文
posted @ 2017-11-28 11:10 Yancea 阅读(10165) 评论(0) 推荐(0) 编辑
摘要: Given a string, sort it in decreasing order based on the frequency of characters. Example 1: Example 2: Example 3: 题意:对于一个给定的字符串,将字符按照所出现的次数降序排列 思路:可以 阅读全文
posted @ 2017-11-28 11:06 Yancea 阅读(172) 评论(0) 推荐(0) 编辑
摘要: 下载django压缩包,解压并和python放在同一个根目录下,进入 Django 目录,执行python setup.py install 显示如下: 然后配置环境变量, 4.检查是否安装成功 输入以下命令检查 如果输出了django的版本号,则说明安装成功。 阅读全文
posted @ 2017-11-28 10:16 Yancea 阅读(4284) 评论(0) 推荐(0) 编辑