04 2020 档案
摘要:布局文件: <?xml version="1.0" encoding="utf-8"?> <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:app="http://schemas.androi
阅读全文
摘要:在练习循环删除list中元素时遇到了一点问题。最开始写的代码是 for i in range(len(list)): del list[i] 这样写到后来会报错,原因是随着列表元素的删除和i的增加,对列表元素的访问会越界。 后来改成了如下代码 while i < len(list): del lis
阅读全文