Record Case Detail

Notes

This function is in beta test. Please help improve it in the issues here.

Stderr

$ export LD_LIBRARY_PATH=$PWD:$LD_LIBRARY_PATH
$ ./l6 rand_int.txt inc
Error: plugin file "./plugins/.DS_Store" not found.
Error: plugin file "./plugins/csv" not found.
Error: plugin file "./plugins/txt" not found.
reading rand_int.txt
sorting elements
Traceback (most recent call last):
  File "l6.py", line 121, in <module>
    exit_code = main(data_type, orig_sort, dest_sort)
  File "l6.py", line 60, in main
    open(output_fn, "wb").write(tf.read())
PermissionError: [Errno 13] Permission denied: 'inc_int.txt'

Hints

Your answer may be identical to the JOJ answer in the first several lines.

However, the main problem you meet now is Runtime Error. And the exit code of your program is 1, which should be 0.

Please double check your code to solve this problem and try again.

Your Answer


        

JOJ Answer

Correct!