我在這裏和Google上搜索了很多關於DecimalField的內容。我有以下models.py: class Valor(models.Model):
class Meta:
verbose_name_plural = ('Valores')
empresa = models.DecimalField(max_digits=10, decimal_places=
我試圖製作的程序需要在程序運行後將雙「收入」設置爲2個小數位。 下面顯示了我設置的方式,但在運行程序後,它仍然會降低零點或結束。可能是什麼問題呢? println("Please enter your filing status");
println("Enter 0 for single filers,");
println(" 1 for married filing j