当前位置:网站首页>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 ))
边栏推荐
- 猜谜语啦(11)
- [three tier architecture]
- 实例005:三数排序 输入三个整数x,y,z,请把这三个数由小到大输出。
- Example 007: copy data from one list to another list.
- 图解八道经典指针笔试题
- Is the security account given by Yixue school safe? Where can I open an account
- Esp8266 interrupt configuration
- C language data type replacement
- Lori remote control commissioning record
- 2022.7.4-----leetcode.1200
猜你喜欢
Example 002: the bonus paid by the "individual income tax calculation" enterprise is based on the profit commission. When the profit (I) is less than or equal to 100000 yuan, the bonus can be increase
Array integration initialization (C language)
MySQL之MHA高可用集群
Business modeling of software model | stakeholders
Let's briefly talk about the chips commonly used in mobile phones - OVP chips
Example 009: pause output for one second
NTC thermistor application - temperature measurement
猜谜语啦(4)
图解八道经典指针笔试题
STM32 lights up the 1.8-inch screen under Arduino IDE
随机推荐
Lori remote control LEGO motor
Bluebridge cup internet of things basic graphic tutorial - GPIO input key control LD5 on and off
C语言标准函数scanf不安全的原因
go依赖注入--google开源库wire
Cinq détails de conception du régulateur de tension linéaire
Matlab tips (28) fuzzy comprehensive evaluation
猜谜语啦(11)
亿学学堂给的证券账户安不安全?哪里可以开户
Take you to understand the working principle of lithium battery protection board
Arduino burning program and Arduino burning bootloader
Let's briefly talk about the chips commonly used in mobile phones - OVP chips
Stm32--- systick timer
Is the security account given by Yixue school safe? Where can I open an account
MySQL之MHA高可用集群
Shell script realizes the reading of serial port and the parsing of message
[NAS1](2021CVPR)AttentiveNAS: Improving Neural Architecture Search via Attentive Sampling (未完)
实例008:九九乘法表
Affected tree (tree DP)
STM32 --- GPIO configuration & GPIO related library functions
GEO数据库中搜索数据