摘要:
I had a problem with my mac where I couldn't save any kind of file on the disk anymore. I had to reboot OSX lion and reset the permissions on files an 阅读全文
摘要:
To insert multiple rows in the table use executemany() method of cursor object. Syntax: cursor_object.executemany(statement, arguments) statement: str 阅读全文
摘要:
最好不要在迭代的过程中删除。你可以使用解析式和filter过滤。 比方说: {key:my_dict[key] for key in my_dict if key !="deleted" } 这叫做字典解析式。它在不删除键的情况下创建了一个新的字典。在大多数情况下更推荐用这种方法。 如果你担心内存消 阅读全文