
sublime text
文章平均质量分 68
湾区人工智能
会多国语言的海归
展开
-
给sublime text添加当前时间的代码,Python语言实现
import datetimeimport sublime_pluginclass AddCurrentTimeCommand(sublime_plugin.TextCommand): def run(self, edit): self.view.run_command("insert_snippet", { "conten...原创 2018-08-08 09:31:39 · 323 阅读 · 1 评论 -
Mac给Sublime Text 配置Python3开发环境
Python2升级为Python3,并且保留所有版本,方法为:https://blog.youkuaiyun.com/BTUJACK/article/details/83821642简单3步成功给Mac安装指定Python版本并且随意切换版本,非常简单,不行拿砖砸我 1查看Python路径终端输入:type -a python显示:appledeMBP:~ apple$...原创 2018-11-07 18:27:30 · 1096 阅读 · 0 评论 -
sublime text下 Python 问题:TabError: inconsistent use of tabs and spaces in indentation
File "G:\ST\Python\code.py", line 52 while left < right and (nums[left] == nums[left+1]): ^TabError: inconsistent use of tabs and spac...原创 2018-09-06 09:32:04 · 2104 阅读 · 0 评论 -
让sublime text显示空格,到底是点还是横杠TabError: inconsistent use of tabs and spaces in indentation
报错情况:TabError: inconsistent use of tabs and spaces in indentation 分析,因为前面点部分从网上复制的,后面横杠是自己写的,这种混合写法会报错。 方案在sublime text中Preferences->Settings-User中添加以下代码:,"draw_white_space": "...转载 2018-11-18 12:30:49 · 2527 阅读 · 0 评论