How to change '\\' to '\'

Jach Fong jfong at ms4.hinet.net
Fri Sep 28 03:42:36 EDT 2018


Yes, you are right, it's just the way Python display the '\'.
Thank you.

Gregory Ewing at 2018/9/28 PM 02:02 wrote:
> Jach Fong wrote:
>> I get a string item, for example path[0], from path = os.get_exec_path()
>> It's something like "\\Borland\\Bcc55\\Include"
> 
> It doesn't actually have double backslashes in it, that's just a
> result of how the string is being displayed. No conversion is
> needed.
> 

---
This email has been checked for viruses by Avast antivirus software.
https://www.avast.com/antivirus




More information about the Python-list mailing list