Week 5
This week we learning about % on class, which means it divides a number and returns the remainder to the integer. I have trouble to understand % at the beginning, but then I am more understand it by Chinese, 0,1 more like just represent two states(可否被整除).
About % is it always be used with for()? I am kind hard to think in what other conditions(except checkerboard) I can use %.
for the concept of set up your own function I think it is more like a clear way to organized our code, and also have clear way to call deferent code by personalized function.
I think one of my problem is hard code, I think this can be always for me to remind myself to get code as clear, simple as possible.
I am also thinking if it is possible to have some simple function, that can work by it own, and I can build a library for myself to use in the future.
Comments
Post a Comment