《Information Science》With The Data In A List To Draw Lines
While we click the points left or right,with judge of the neighbor not both left or both right,we get the correct position of all the points for connect the lines.Then save them to a all_selectd list.Well done.Good job.
Clear and draw,it seems that we need slice the list for left-right group.The arithmetic in python has two.The important way is slice,the simple code is:[list_pos[i:i+2] for i in range(len(list_pos),n)]
《信息科技》用列表中的数据来绘制多条线 中/英
于 2024-10-09 05:46:10 首次发布