I am a beginner rookie ha
For the three symbols are still a little confused, please great god answer
/this symbol should be well understood, it is divided by mathematics. Ps: if I say too full, please correct me, thank you
//and % is I have been very confused
#//
# %
Wish you a helping hand, ha, ha, ha
For this cause I am in recursive learning, very confused
As follows:
Def f (x) :
If x>=2:
F (x//2)
Print (x % 2, end=' ')
F (8)
Def proc (n) :
If n & lt; 0:
Print (' - 'end=' ')
N=- n
If n//10:
Proc (n//10)
Print (n % 10, end=' ')
Proc (345)
CodePudding user response:
Grasp two points:
A/b as a result of the whole down
The result of a % b is a - b * (a/b)
CodePudding user response: