我对python中转义键的理解如下:
They can be used to represent special characters (tab "\t", newline "\n", vertical indent "\v")
They can negate quotes/apostrophes ("\"", '\'')
They can negate the backslash escape key ('\\')
但是为什么'\1\2\3\4\5\6'
显示为☺☻♥♦♣♠
为什么'\7'
在我的电脑上发出噪音
为什么任何大于7的数字都不适用于逃生键?例如print('\8')
显示为:\8
通过{a2}
相关问题 更多 >
编程相关推荐