If you need to do many append operations to build a large string, you can use StringIO or cStringIO. The interface is like a file. ie: you write ... ... <看更多>
This is an excerpt from the Python Data Science Handbook by Jake ... ind): """Quickly make a DataFrame""" data = {c: [str(c) + str(i) for i in ind] for c in ... ... <看更多>