当前位置:网站首页>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 ))边栏推荐
- Void* C is a carrier for realizing polymorphism
- One question per day - replace spaces
- NTC thermistor application - temperature measurement
- Various types of questions judged by prime numbers within 100 (C language)
- STM32 lights up the 1.8-inch screen under Arduino IDE
- 2020-05-21
- Sword finger offer 09 Implementing queues with two stacks
- MATLAB小技巧(28)模糊綜合評價
- 剑指 Offer 06. 从尾到头打印链表
- Let's briefly talk about the chips commonly used in mobile phones - OVP chips
猜你喜欢

STM32 single chip microcomputer -- volatile keyword

Apaas platform of TOP10 abroad

STM32 --- serial port communication

Guess riddles (7)
![[nas1] (2021cvpr) attentivenas: improving neural architecture search via attentive sampling (unfinished)](/img/3b/c94b8466370f4461875c85b4f66860.png)
[nas1] (2021cvpr) attentivenas: improving neural architecture search via attentive sampling (unfinished)

猜谜语啦(3)

MySQL之MHA高可用集群

Example 008: 99 multiplication table

STM32 lights up the 1.8-inch screen under Arduino IDE
![[cloud native | learn kubernetes from scratch] III. kubernetes cluster management tool kubectl](/img/8a/702019b44c8e60dffbcd898330afcb.png)
[cloud native | learn kubernetes from scratch] III. kubernetes cluster management tool kubectl
随机推荐
Low code platform | apaas platform construction analysis
Run menu analysis
Business modeling | process of software model
Example 008: 99 multiplication table
猜谜语啦(9)
Detailed summary of FIO test hard disk performance parameters and examples (with source code)
關於線性穩壓器的五個設計細節
Array integration initialization (C language)
整形的分类:short in long longlong
Is the security account given by Yixue school safe? Where can I open an account
Guess riddles (2)
Speech recognition learning summary
U8g2 drawing
How can fresh students write resumes to attract HR and interviewers
图解八道经典指针笔试题
Reasons for the insecurity of C language standard function scanf
Example 006: Fibonacci series
Guess riddles (4)
An enterprise information integration system
How to write cover letter?