Celebrities can buy books without spending money because they can guarantee sales, while anonymous people can buy books without spending money because they can't guarantee sales. Because some of the published books need to be digested by the author himself, the specific cost depends on your printing volume. But at least it won't be less than 50 thousand, and the price of the big publishing house is higher, but one thing about the big publishing house is that if you are of poor quality, you won't help you publish it just because you want to make money, so as not to be cheated.
PS: Let me give you a suggestion. Put it online first, and then consider publishing a book after accumulating popularity and popularity. If the work is good enough, a publishing house will contact you actively, and then you can at least save a lot of money.
References:
I hope it helps you.