Traditional Culture Encyclopedia - Weather inquiry - Json analysis of weather forecast
Json analysis of weather forecast
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.
- Previous article:Is the 1080 processor of vivoX60 under pressure to play games?
- Next article:Write a 200-word composition in Taohua Island, my hometown.
- Related articles
- Everyone else is making progress, but you are stagnating —— Some thoughts on reading The Smarty-pants Thermometer
- Can I ride a bike in Beijing 165438+ 10?
- How to dress in 13 to 3 1 degree weather?
- What should I do if I sweat a lot in summer?
- "Avatar" comments 600 words.
- Which channel is the weather forecast for Zombie Destruction Project?
- What is the cause of cervical spondylosis?
- How much is Datong in Shanxi higher than Cangzhou in Hebei?
- A letter to the miner's father: 55438+0000 words.
- Relatives intercede and make trouble without reason.