Record error: invalid literal for int () with base 10: '3.0'

  • As shown, since the user input is automatically converted to str type, if the sum of the digital inputs, conversion of datatypes

 

 

 

 

  • However, int () conversion only pure string of digits

 

 

 

Guess you like

Origin www.cnblogs.com/wxy2000/p/11964147.html