I would like to convert the 3D list into a tuple as shown below, but what should I do?
obj1=[[[1,2],[3,4]],[[5,6],[7,8]]] obj2=(((1,2),(3,4)),((5,6),(7,8))))
Thank you for your cooperation.
obj2=tuple(map(lambdai:tuple(map(tuple,i))),obj1) print(obj2) # (((1, 2), (3, 4)), ((5, 6), (7, 8)))
1675 Is there a way to get HttpServletRequest from the controller of spring mvc without adding a parameter to the method?
1721 Uncaught (inpromise) Error on Electron: An object could not be cloned
1878 I'm in trouble because I can't do anything about the error.TypeError: loop of ufunc does not support argument 0 of type Float which has no callable exp method
2356 I want to display multiple lines with FFmpeg subtitles.
1856 I want to connect to the webcam from WSL(ubuntu)
© 2025 OneMinuteCode. All rights reserved.