/ Published in: Python
URL: http://www.faqs.org/docs/diveintopython/odbchelper_join.html
join only works on lists of strings; it does not do any type coercion. joining a list that has one or more non-string elements will raise an exception.
Expand |
Embed | Plain Text
return ";".join(["%s=%s" % (k, v) for k, v in params.items()]) # or x = range(100) print ";".join(["%s"%(f) for f in x])
You need to login to post a comment.
