def list_remove_by_index(l, index):
if index < <NUM_LIT:0> or index >= len(l):<EOL><INDENT>raise ValueError('<STR_LIT>')<EOL><DEDENT>if index == (len(l) - <NUM_LIT:1>):<EOL><INDENT>l.pop()<EOL><DEDENT>elif index == <NUM_LIT:0>:<EOL><INDENT>l = l[<NUM_LIT:1>:]<EOL><DEDENT>else:<EOL><INDENT>l = l[<NUM_LIT:0>:index] + l[index+<NUM_LIT:1>:]<EOL><DEDENT>return l<EOL>
将list中的index位的数据删除