No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.
2 Posted Topics
Re: Hello (u'D:\\data\\Example.xml',) I read the above string from a list and pass it to the below query, sql = "DELETE FROM docs WHERE pathVariId = '"+myfile+"'" self.cursor.execute(sql) but I get the error as below sqlite3.OperationalError: near "D": syntax error any suggestions to get rid of that '' which is causing … | |
I have a list as alist = [[], [(u'0.77',)], [(u'0.34',)], [(u'0.12',)], [(u'0',)], [(u'0.0',)], [(u'0',)]] I'm trying to get it as like this [0.77, 0.34, 0.12, 0, 0.0, 0] using the statement rlist= map(lambda a: int(a), alist) but got an error as, TypeError: int() argument must be a string or a … |
The End.