![](/img/trans.png)
[英]How to change cursor position of wxRichTextCtrl in event handler?
[英]how to change the position of the cursor in python 3
在Windows 10上,您可以使用控制台虛擬終端序列中的 ANSI轉義序列。
在使用它們之前,您需要subprocess.run('', shell=True)
(在Python 3.5之前,使用subprocess.call
)。 這些序列使您可以找到所需的內容。
警告:同樣是原版Microsoft, 顯示和擦除行中的擦除文檔部分有問題。 參數1和2相反。
這應該工作(雖然,實際輸入密碼似乎破壞了布局):
import subprocess
subprocess.run('', shell=True)
print(' enter password : \0337', end='')
print('\n\n\t2 attempts remaining .\0338', end='')
x = input()
用Python 3使用;
print("...", end="")
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.