Browsing index pages (2 articles)
↧
Why is the syntax different when locating two files of the same type, in the...
I'm trying to locate two different files both stored in the same directory, but I am forced to use different syntax for each file. I'm setting up a login interface that uses a file "usernames.txt" to...
View ArticleAnswer by Jonathan Feenstra for Why is the syntax different when locating two...
The backslash ('\') is the escape character for strings in Python. '\u' starts a 16-bit hex value Unicode escape for the next four characters. You could use a raw string r"login\usernames.txt" or...
View Article
Browsing index pages (2 articles)