What is meaning of (x,y//2) in python programming

前端 未结 0 619
轻奢々
轻奢々 2020-12-12 12:34

Here is the code

def power(x, y):

if y == 0: 
    return 1
if y % 2 == 0: 
    return power(x, y // 2) * power(x, y // 2) 
      
return x * power(x, y         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题