Why if Python flask route has more arguments, it returns an errormistakes?
<pre><code>@app.route("/ufname/&lt;uname&gt;/friend/&lt;fname&gt;")
def v_ufname(uname,fname):
  return "s%\'s friend - %s\'s profile" % (uname,fname)
</code></pre>

<p><img src="https://i.stack.imgur.com/dHjad.png" alt="enter image description here"></p>

<p>and  i try add more %%%s%%\'s, the page write "<strong>%mary%'s friend - %linda%'s profile</strong>":</p>

<p><img src="https://i.stack.imgur.com/S9VnX.png" alt="enter image description here"></p>

<p>why? and how to rosoluvtion the page write "%mary%" %linda% has "%"?</p>

<p>thanks!</p>

<p>Use</p>

<pre><code>return "%s\'s friend - %s\'s profile" % (uname,fname)
</code></pre>

<p>Check out <a href="https://pyformat.info/" rel="nofollow">https://pyformat.info/</a></p>

python flask