填空题

阅读下⾯的程序,写出程序运⾏输出的结果________。

注:仅填写数字,勿填写汉字或其他字符

def func(n):

         if n < 2:

                 return 0

         if n == 2:

                 return 1

         if n == 3:

                 return 2

         t3 = n // 3

         if n - t3 * 3 == 1:

                 t3 -= 1

         t2 = (n - t3 * 3) // 2

         return (3**t3)*(2**t2)

print(func(n=7))

赣ICP备20007335号-2