只是看看 Sublime Text 2 以扩展它。我用 CTRL '弹出了控制台,并尝试这样做:
>>> x = window.new_file()
>>> x
<sublime.View object at 0x00000000032EBA70>
>>> x.insert(0,"Hello")
确实打开了一个新窗口,但我的插入似乎不起作用:
Traceback (most recent call last): File "<string>", line 1, in <module> Boost.Python.ArgumentError: Python argument types in
View.insert(View, int, str) did not match C++ signature:
insert(class SP<class TextBufferView>, class SP<class Edit>, __int64, class std::basic_string<wchar_t,struct std::char_traits<wchar_t>,class std::allocator<wchar_t> >)
知道我做错了什么吗?