Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #79857

% symbol in python

X-Received by 10.66.222.135 with SMTP id qm7mr4096169pac.20.1414532503550; Tue, 28 Oct 2014 14:41:43 -0700 (PDT)
X-Received by 10.140.34.76 with SMTP id k70mr19qgk.40.1414532503226; Tue, 28 Oct 2014 14:41:43 -0700 (PDT)
Path csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!news.glorb.com!r10no1131034igi.0!news-out.google.com!u5ni10qab.1!nntp.google.com!s7no1241365qap.0!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail
Newsgroups comp.lang.python
Date Tue, 28 Oct 2014 14:41:42 -0700 (PDT)
Complaints-To groups-abuse@google.com
Injection-Info glegroupsg2000goo.googlegroups.com; posting-host=116.202.130.34; posting-account=ESMvWgoAAACN3co-ywvI3f_Kki2ooOjY
NNTP-Posting-Host 116.202.130.34
User-Agent G2/1.0
MIME-Version 1.0
Message-ID <b80ee29c-e23a-4f11-9c65-746f7d74c347@googlegroups.com> (permalink)
Subject % symbol in python
From satishmlmlml@gmail.com
Injection-Date Tue, 28 Oct 2014 21:41:43 +0000
Content-Type text/plain; charset=ISO-8859-1
Xref csiph.com comp.lang.python:79857

Show key headers only | View raw


<tr><th>key<td><input type=text name=key value="%(key)s">
rowhtml = '<tr><th>%s<td><input type=text name=%s value"%%(%s)s">\n"

what does % mean in first line of code and
what does %%(%s)s mean in second line of code

kindly explain

Back to comp.lang.python | Previous | Next — Next in thread | Find similar | Unroll thread


Thread

% symbol in python satishmlmlml@gmail.com - 2014-10-28 14:41 -0700
  Re: % symbol in python Mark Lawrence <breamoreboy@yahoo.co.uk> - 2014-10-28 22:17 +0000
  Re:% symbol in python Dave Angel <davea@davea.name> - 2014-10-28 21:57 -0400
    Re: % symbol in python satishmlmlml@gmail.com - 2014-10-28 20:51 -0700
      Re: % symbol in python Chris Angelico <rosuav@gmail.com> - 2014-10-29 15:02 +1100
        Re: % symbol in python satishmlmlml@gmail.com - 2014-10-28 21:41 -0700
          Re: % symbol in python alex23 <wuwei23@gmail.com> - 2014-10-29 15:25 +1000
            Re: % symbol in python satishmlmlml@gmail.com - 2014-10-28 22:48 -0700
              Re: % symbol in python Mark Lawrence <breamoreboy@yahoo.co.uk> - 2014-10-29 08:40 +0000

csiph-web