On 7/5/06, Ismael Garrido <[EMAIL PROTECTED]> wrote:
韩宪平 wrote:
>
> Returns string."""
> return ";".join(["%s=%s" % (k, v) for k, v in params.items()])
>
> Whant ";"means
> %s=%s?
> join?
>
>>>> help(items) no matched.
>>>>
> Where can i find stuff helpful?
"%s" % (param) is called string formatting.
xian-ping,
what ismael says is correct... it means string formatting. for
example %s means string, %d means integer, etc. you use those format
strings, then give it real objects, for example, a string or an
integer, and it will format it all into one larger string.
for extra help in Chinese, you can refer to:
1. Chinese links from Python.org:
http://www.python.org/doc/nonenglish/#chinese
2. my book, "Core Python Programming" was translated into Chinese...
it is somewhat dated (until the new one comes out), but is relevant
for your question:
http://www.china-pub.com/computers/common/info.asp?id=3097
good luck!
-- wesley
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
"Core Python Programming", Prentice Hall, (c)2007,2001
http://corepython.com
wesley.j.chun :: wescpy-at-gmail.com
python training and technical consulting
cyberweb.consulting : silicon valley, ca
http://cyberwebconsulting.com
_______________________________________________
Tutor maillist - Tutor@python.org
http://mail.python.org/mailman/listinfo/tutor