Familiar with keyboard
First of all, you should be familiar with the keyboard, know what the keys of the keyboard are for, and divide the work into ten fingers. It's best to practice typing without looking at the keyboard.
Select input method
When typing on the computer, you should choose an input method. Nowadays, people mostly use Wubi font input method and Pinyin input method. Five-stroke input method has the fastest typing speed, but it is difficult to learn.
Ask for guidance
To sum up, if you just want to learn typing, you don't need to go to a training class. Just find someone around you who can type and teach you. The rest is practice.