![](https://img-blog.csdnimg.cn/20201014180756757.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
Python
SimonFighter__
爱出者爱返,福往者福来
展开
-
Python 筛选1-200的回文
def is_palindrome(n): #可以转为字符串 # return str(n) == str(n)[::-1] N = n result = 0 while N != 0: result = result * 10 + N % 10 #不是整除 1 / 10 = 0.1 N = int(N / 1...原创 2018-08-01 17:23:58 · 365 阅读 · 0 评论 -
Mac Sublime Text3 配置 Python 开发环境
一、设置Sublime Text的语法为python View -> syntax ->python 二、设置编译环境 a.默认python版本2.7 Tools -> Build System -> Python b.添加编译环境python3.7 Tools -> Build System -> New Build ...原创 2018-08-03 10:20:14 · 708 阅读 · 0 评论 -
Sublime REPL 配置 Python版本
安装Sublime REPL后默认使用系统的Python版本。查看方法,打开Sublime,在菜单栏:Tool->SublimeREPL->Python->Python Python 2.7.10 (default, Oct 6 2017, 22:29:07) [GCC 4.2.1 Compatible Apple LLVM 9.0.0 (clang-900.0.31)] ...原创 2018-08-03 11:08:34 · 3576 阅读 · 0 评论