Python storage prompt field error

Don't talk nonsense, just start working!

%s description

A string formatting syntax, the basic usage is to insert the value into the string of the %s placeholder.
%s, means that an object is formatted as a character
"%± (represented by the sign) 3 (numbers indicate the length of the string) s"% (string that replaces s)
%s string type indicates that an object is formatted as a character " %s1”%S2 s1 puts a string (formatted string) S2 puts a value that you want to format

sql statement with quotes

Writing one: quote the field

good.title = '"%s"'%(title)

Writing method 2: field without quotation marks

good.title = '%s'%(title)

According to your needs

Finally, attach the usual warehousing method to solve the error problem!
Insert picture description here

Guess you like

Origin blog.csdn.net/weixin_37254196/article/details/108222902