--- Quote Start ---
Yes it is true I can generated it by function or for generate loop in VHDL, but I wanna learned how can I using of the Python script language in VHDL files. and this communication between the VHDL files and Python how is it?
--- Quote End ---
There is no communication.
If you want to use Python to create VHDL, then you would simply use Python to create VHDL files.
If you want to have the Python create the files based on VHDL generics provided in the Quartus GUI, then you will have to use a Tcl pre-flow script to run the Python code.
My advice is that if VHDL can generate the logic you need, then use VHDL. You are overly complicating things if you need to use Python in your scripting flow. If you have to use scripts, then stick with Tcl, and your scripts will then be portable to other users. No-one on this forum will be interested in helping you debug your Python, but you will get help debugging VHDL and Tcl.
Cheers,
Dave