Python Assert 确认条件为真的工具 #!/usr/bin/python mylist=['item'] assert len(mylist)>=1 mylist.pop() assert len(mylist)>=1