0
I’m trying to add this path to the connection to the bank, and it gives me this error:
File "C:/Users/gabri/PycharmProjects/allbd_s/conc.py", line 4
path='C:\Usuario\gabri\SQLite\conx'
^ SyntaxError: (unicode error) 'unicodeescape' codec can't decode bytes in position 2-3: truncated \UXXXXXXXX escape
Process finished with exit code 1*
The algorithm is this:
import sqlite3
#caminho
path = 'C:\Usuario\gabri\SQLite\conx'
#criar bd
conn = sqlite3.connect(path+r'teste.db')
PS: the path address is correct.