fork(1) download
  1. # your code goes here
  2.  
  3. # scores = [0.80,0.90,0.99,0.77]
  4. # score_strs = [f'{score*100:.1f}'.rjust(6) for score in scores]
  5. # print("score_strs: ", score_strs)
  6. # score_str = ''.join(score_strs)
  7. # print("score_str: ", score_str)
  8. # case = "R"
  9. # print(f'{case.ljust(6)} {score_str}')
  10.  
  11.  
  12. # # print(''.join([8000.0,8000.9,90000.0]))
  13. import numpy as np
  14. d= np.arange(3 * 2 * 4).reshape(3, 2, 4)
  15. print("d: ", d)
  16. print("aa: ", d[0:2,1:3])
Success #stdin #stdout 0.16s 28472KB
stdin
Standard input is empty
stdout
d:  [[[ 0  1  2  3]
  [ 4  5  6  7]]

 [[ 8  9 10 11]
  [12 13 14 15]]

 [[16 17 18 19]
  [20 21 22 23]]]
aa:  [[[ 4  5  6  7]]

 [[12 13 14 15]]]