Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.
s='s=%r;print s%%s#'+input();print s%s
Try it online
For input abc the resulting quine is:
s='s=%r;print s%%s#abc';print s%s#abc