Home > Back-end >  Have know this how to solve
Have know this how to solve

Time:11-08

If arg is Ellipsis:
Final_args. The extend ((slice (None, None, None),) * (rank - n_args + 1))
The else:
Final_args. Append (arg)

If len (final_args)> rank:
Raise TypeError (" Argument sequence long ")

Return final_args
  • Related