Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在插入"并按下标签。我希望能够text == "\""完成我的功能。但我得到了空字符串。同样,当我输入a,左右时,我也只是在完成函数中获取空字符串。
"
text == "\""
a,
如何禁用此行为?
示例代码:
import readline readline.parse_and_bind('tab: complete') def completer(text, state): return [] readline.set_completer(completer)
我认为这可以满足我的要求:
readline.set_completer_delims("")