python - Replacement value not working? -
So I have a try except for the block set up, which will go through the database dependent on some conditions:
: for searchnumber in itertools.count (0): printnumber print c.execute ("search" from the words where onstate = 1 and progid =% d; "" ") % Searchnumber searchterms = (C.fetchall ()) searchterms = [for search in X in searchterms (excluding "x") excluding print searchers: pass For some reason, this project , In fact, even her , The first value is not being specified (0). why will? As far as I know,% d should be replaced by the integer value of searchnumber
Due to hiding the code> type error , you are using the % operator or object that is equivalent to c.execute ("string") . Maybe you have caught it, if you have not left all the errors or left it. You note that this is a typical antipaton.
Comments
Post a Comment