当前位置:网站首页>Program error record 1:valueerror: invalid literal for int() with base 10: '2.3‘
Program error record 1:valueerror: invalid literal for int() with base 10: '2.3‘
2022-07-05 08:36:00 【A little brother who studies mathematical modeling】
The above error is caused by :
int() In parentheses, you can only turn things that are integers
# a=input()
# a1,a2,a3=a.split()
a1,a2,a3=1,2.3,4.7
print(float(a1)+float(a2)+float(a3))
Rumor has it
Content =int(float( Content ))
边栏推荐
- Example 008: 99 multiplication table
- Business modeling of software model | stakeholders
- FIO测试硬盘性能参数和实例详细总结(附源码)
- Business modeling of software model | vision
- Take you to understand the working principle of lithium battery protection board
- 实例003:完全平方数 一个整数,它加上100后是一个完全平方数,再加上168又是一个完全平方数,请问该数是多少?
- Arduino+a4988 control stepper motor
- 图解八道经典指针笔试题
- 实例005:三数排序 输入三个整数x,y,z,请把这三个数由小到大输出。
- 整形的分类:short in long longlong
猜你喜欢
随机推荐
猜谜语啦(7)
Run菜单解析
STM32 --- serial port communication
剑指 Offer 06. 从尾到头打印链表
On boost circuit
实例010:给人看的时间
Bluebridge cup internet of things basic graphic tutorial - GPIO output control LD5 on and off
STM32---IIC
猜谜语啦(8)
Reasons for the insecurity of C language standard function scanf
Cinq détails de conception du régulateur de tension linéaire
Take you to understand the working principle of lithium battery protection board
Infected Tree(树形dp)
Illustration of eight classic pointer written test questions
【三层架构及JDBC总结】
Keil use details -- magic wand
L298N module use
Wheel 1:qcustomplot initialization template
Some pitfalls of win10 network sharing
实例008:九九乘法表