Questions tagged «visual-mode»

可视模式是为操作员选择一段文本的灵活便捷的方法。

1
如何轻松获得一段文本的长度?
有时我想检查一段文本的长度,例如在此示例中: str = 'Hello, world!' if len(str) == 13: print('Hello back to you!') 我想知道字符串的长度Hello, world!。 我现在做的,就是在列号rulerformat用%c,我把我的光标上的第一个字符,然后去到最后,和手动。减去。 但是,这很尴尬。例如,我想要的是在标尺中以虚拟模式进行选择的时间长度,但是据我所知,对此没有任何选择。 能做到吗?还是以其他更简单的方式?
By using our site, you acknowledge that you have read and understand our Cookie Policy and Privacy Policy.
Licensed under cc by-sa 3.0 with attribution required.