Traditional Culture Encyclopedia - Weather forecast - Weather code acquisition
Weather code acquisition
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 sultry weather suitable for fishing?
- Next article:Ancient pavilion poems
- Related articles
- Is Guangzhou a prefecture-level city?
- Who knows the full text of Cao Pi's "Yan Ge Xing", how many years this poem was written, and what is the writing background?
- How to study for a master's degree abroad?
- Warm and excellent composition
- Composition of disaster prevention and mitigation
- What is the best color of thunder frog?
- After a few days, can I eat sea cucumber when the weather is warm?
- What is the story of Song Wu's killing tigers?
- Through what phenomenon can we observe the weather change? (50 points of satisfaction)
- Shenzhen you composition