这在线程“main”中给出了异常:
java.lang.UnsupportedOperationException:删除
fun main(args: Array<String>) {
val list = listOf(0, 1, 2, 3, 4, 5, 6, 7, 8);
var record: MutableList<Int>;
record = list as MutableList<Int>;
record.remove(2);
print(record);
}