Will skipping class directly fail?
As long as the teacher doesn't sign in by name, it's okay to be late for class and leave early. If teachers name names, they will deduct grades, but they will not fail directly. As long as you arrive before class and explain the situation to the teacher (except physical education class), it's okay to leave early without being discovered by the teacher (because there are many students, the teacher generally doesn't know).
What's the effect of skipping classes?
1 will affect your study progress and efficiency.
2. Affect students' personal evaluation.
You may let yourself miss a chance to know a great teacher.
4. It may change your regular study state, because some students may think that they have skipped class once anyway, and it doesn't matter if they skip it again, and then it will affect their study state.