Skip to content
Aynakeya
HomeWritingBookmarksCTF
Aynakeya 的头像

Aynakeya

相信的心就是你的魔法

GitHubEmailBilibili
121文章16分类101标签
← 返回文章列表

Python input function not work properly in linux

2019-10-06Programming

When I am writing a backup program for my minecraft server using python.

I find that when I want to use press backspace or arrow key, the input will not work properly.

Instead, it shows strange character like.

strange character

the solution is very simple

add import readline at the begining of the code will automatically fix the problem

#python
Older【转载】iptables 详解
Newerchange git password in idea
© 2026 Aynakeya
RSSArchivesBack to top ↑