@SnoopJeDi/

ModernHealthyBackups

Python

No description

fork
loading
Files
  • main.py

This Plugin Crashed!

Error: Error: must not create an existing file {"type":"CREATE_FILE","wid":"0.03466106824659909","path":"main.py","file":{"path":"main.py","content":{"asEncoding":{"base64":"bXlzdHJpbmcgPSAnaGVsbG9cXHh4eXknCgpwcmludChteXN0cmluZykKIyBvb3BzISBcIGlzIGludGVycHJldGVkIGFzIGFuIGVzY2FwZSBpbiB0aGlzIGNhc2UKCm15c3RyaW5nID0gJ2hlbGxvXFxcXHh4eXknCnByaW50KG15c3RyaW5nKQojIHRoaXMgd29ya3MsIGJ1dCBpcyB1Z2x5CgpteXN0cmluZyA9IHInaGVsbG9cXHh4eXknCnByaW50KG15c3RyaW5nKQojIHVzaW5nIHJhdyBzdHJpbmdzIGxldHMgdXMgdGVsbCB0aGUgaW50ZXJwcmV0ZXIgdGhhdCB3ZSBtZWFuIGV4YWN0bHkgd2hhdCB3ZSB0eXBlZAoKcHJpbnQoJ1xcJyBpbiBteXN0cmluZykgIyB0ZXN0cyBpZiB0aGVyZSBpcyBPTkUgXCBpbiB0aGUgc3RyaW5nCnByaW50KHInXFwnIGluIG15c3RyaW5nKSAjIHRlc3RzIGlmIHRoZXJlIGFyZSBUV08gXCBpbiB0aGUgc3RyaW5nCnByaW50KCdcXFxcXFwnIGluIG15c3RyaW5nKSAjIHRlc3RzIGlmIHRoZXJlIGFyZSBUSFJFRSBcIGluIHRoZSBzdHJpbmc="},"asBuffer":null},"loaded":true}}
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
mystring = 'hello\\xxyy'

print(mystring)
# oops! \ is interpreted as an escape in this case

mystring = 'hello\\\\xxyy'
print(mystring)
# this works, but is ugly

mystring = r'hello\\xxyy'
print(mystring)
# using raw strings lets us tell the interpreter that we mean exactly what we typed

print('\\' in mystring) # tests if there is ONE \ in the string
print(r'\\' in mystring) # tests if there are TWO \ in the string
print('\\\\\\' in mystring) # tests if there are THREE \ in the string