擅长:python、mysql、java
<p>首先,我要让代码更具可读性:</p>
<pre><code>acquisition_cost = int(input("Acquisition cost?"))
expenses = int(input("Misc Expenses?"))
total_cost = acquisition_cost + expenses
tax = int(input("Processing fee"))
# Is this what you were looking for?
tax_band = float(input("Tax percentage to be collected"))/100
total_tax = tax * tax_band
sell_price = int(input("Sell price?"))
net_profit = (total_cost + total_tax) - sell_price
cost_to_buyer = sell_price + total_tax
</code></pre>