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)))
975 In Java servlet, when SHA-256 sends WW-Authenticate header for digest authentication, the client does not return the result.
543 Understanding How to Configure Google API Key
553 Scrap text information after the "View More" button when searching in the Yahoo! News search window
622 /usr/bin/google-chrome:symbol lookup error:/usr/bin/google-chrome: undefined symbol:gbm_bo_get_modifier
540 Unable to install versioned in Google Colab
© 2024 OneMinuteCode. All rights reserved.