f-strings.expect.txt 761 B

12345678910
  1. <span class="hljs-string">f'<span class="hljs-subst">{name}</span>'</span>
  2. <span class="hljs-string">f"<span class="hljs-subst">{name + <span class="hljs-number">5</span>}</span>"</span>
  3. <span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-string">f"""
  4. <span class="hljs-meta">... </span><span class="hljs-subst">{
  5. <span class="hljs-meta">... </span> name
  6. <span class="hljs-meta">... </span>}</span>
  7. <span class="hljs-meta">... </span>"""</span>
  8. <span class="hljs-string">rf"<span class="hljs-subst">{name}</span>"</span>
  9. <span class="hljs-string">fr"<span class="hljs-subst">{name}</span>"</span>
  10. <span class="hljs-string">f"<span class="hljs-subst">{name + <span class="hljs-string">f'<span class="hljs-subst">{name}</span>'</span>}</span>"</span>