osdir.com


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

How to change '\\' to '\'


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