Traditional Culture Encyclopedia - Weather forecast - The weather is wrong
The weather is wrong
First, find out the number of lines of code that went wrong.
Second, find out the variables that go wrong.
You print (type)? You can find that the variable is str? String type, can't participate in the calculation, so to convert to numerical type, generally use float (variable name)? If you want to change and correct the wrong line, you basically don't need to change anything else.
Personal advice:
1. Your python? The foundation seems a little weak, so study hard. Other modules need this foundation to be better used.
2.? Maybe you can have a look at the panda. Sometimes pandas are used for data analysis? Can save a lot of code, especially for people who have just learned python? Maybe it's easier to accept pandas? The unique grammar of.
Wealth value, if any, should be given to those who answer the above questions. Because his answer is correct.
- Related articles
- Dream of becoming a snake man Yuncheng
- Yingkou tidal timetable
- Will Huluba 202 1 in Sichuan Province start construction?
- Does Apple Watch have GPS? Does Apple Watch have a positioning device?
- Weather plug-in, which comes with Samsung NOTE2, is always one hour faster than the actual time. What should we do?
- Two-month-old baby's face is dry, rough and peeling. What happened?
- What's the weather like five days after getting fat?
- Warm-hearted copy of overtime (selected 3 1 sentence)
- Bad weather signal
- What are the tourist attractions in Hainan?