title: Use macro replacement in Python like C/C++
body: <p>As we know C/C++ has macro function to do text replacement, here is an example:</p>
  <pre><code>#include &lt;string&gt;
  #include &lt;iostream&gt;
  using namespace std;
  
  #define FIRST_NAME Print(&quot;Moon&quot;)
  #define FAMILY_NAME Print(&quot;Sun&quot;)
  
  string Print(string name)
  {
      cout &lt;&lt; name &lt;&lt; endl;
      return name;
  }
  
  int main()
  {
      string name = FIRST_NAME + FAMILY_NAME; 
      return 0;
  }
  </code></pre>
  <p>As you can see the <code>FIRST_NAME</code> and <code>FAMILY_NAME</code> are macros which will be replaced by the function <code>Print()</code>.</p>
  <p>My question is does Python have a similar feature? Or what can I do to create this kind of feature?</p>