Python 3 object-oriented programming, error and exception handling

Class and instance Classes are abstract templates, and instances are concrete "objects" created according to classes. Terminology explanation Class: A collection of objects that describe the same properties and methods. It defines the properties and methods common to each object in the set. Objects are instances of ...

Posted by kevgais on Tue, 07 May 2019 10:40:04 +0200

mybatis input mapping and output mapping

1. parameterType (input type) (1) Pass simple types (such as int, which we can use directly) public Student getStudentById(Integer studentId); <select id="getStudentById" parameterType="int" resultType="student"> select * from tblstudent where studentId = #{studentId} </select> (2) Passing pojo objects     p ...

Posted by bogins on Mon, 06 May 2019 22:55:03 +0200

scale Gradient Scaling for Android Basic Animation

Xiaocai recently learned about ViewPager's animation, which I am ashamed to say has not been carefully understood for so long. Today, I intentionally learn about Android's basic animation. Android's basic animations include alpha (transparency) / scale (zooming) / translate (displacement) / rotate (rotation). Learn about scale gradient zooming ...

Posted by s1m0n on Mon, 06 May 2019 08:45:04 +0200

Lesson 086: Pygame: Collision Detection | Learning Records

Today we are going to learn collision detection. Most games need to do collision detection because you need to know whether the ball collided, whether the bullet hit the target, whether the protagonist stepped on the shit. How should that be achieved? To put it bluntly, the principle is simple, that is, to detect whether there i ...

Posted by TreeNode on Sun, 05 May 2019 15:48:04 +0200