http://jingyan.baidu.com/article/92255446a76801851648f4c5.html?st=2&net_type=&bd_page_type=1&os=0&rst=&word=186
Press the Alt key first, then press the numeric keys of the keypad , such as 07 (decimal, directly input 7 can also be), and then release the Alt key, you can enter the bell character with ascii value of 07
Note
that it must be the number key of the small keyboard, not the main keyboard Method 2. Use The script is output to a file, and then copied
. For example, python outputs the bell key:
if __name__ == '__main__': import codecs fo=codecs.open('bellChar.txt', 'w'); fo.write('\a') #\x07 bell character fo.close()