我在我的代码中发现了我从未写过的一行:
#!/usr/bin/python
#1;3409;0c
from math import exp
我想你可以自己发现。
所以我用谷歌搜索了一下,似乎没有人谈论它,但是,它在某些地方会自行出现:
- > http://home.gwu.edu/~maxal/pubs.html
- > http://lists.freedesktop.org/archives/systemd-devel/2014-November/024896.html
- > https://github.com/alxlit/autoclave/pull/9/files?diff=split
有人知道它是从哪里来的吗?
最佳答案
根据 Why is vim starting in delete mode? 上的评论,这似乎与 Vim 和终端之间的交互有关
When built with the +termresponse feature, Vim sends a special control sequence (see :set t_RV?) to the terminal. When your terminal emulator see this sequence it responds with the sequence ESC ]>1;3201;0c.
根据 Mapping <esc> in vimrc causes bizzare arrow behaviour,在这些情况下按下退出键时,Vim 可能还会做一些事情。
This ensures that the binding doesn't happen until after the term response is set, which prevents Esc from also sending a string like ]>1;3201;0c to vim.
因此,我猜测问题中链接的所有页面都已(至少一次)在 Vim 中打开。
关于python - 神秘的 "1;3409;0c"行从何而来,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/27861186/