In python3.6, I tried In [60]: a = ‘\a’ In [61]: b = ‘\b’ In [62]: c = ‘\c’ In [63]: l =[a, b, c] If test l In [64]: l Out[64]: [‘\x07’, ‘\x08’, ‘\c’] encapsulate them directly in a list. In [70]: [‘\a’,’\b’,’\c’] Out[70]: [‘\x07’, ‘\x08’, ‘\c’] What’s the mechanism behind it?Read more