String problems with Python
问题 I am a Python noob so I may be missing something here, but I have a problem with how a string is handled inside my program. When I display it, only the first character is displayed. # some code MessageBox = ctypes.windll.user32.MessageBoxA # some other code testString = self.statusBar1.GetStatusText(0) # displays "azertyu" MessageBox(None, "azertyu", 'COUCOU', 0) # displays 'M' MessageBox(None, testString, 'COUCOU3', 0) # displays 'a' MessageBox(None, testString[1:], 'COUCOU3', 0) # #displays