파이썬 두 점 사이에 선분을 어떻게 생성합니까?
점을 그리는 코드가 있습니다. import matplotlib.pyplot as plot from matplotlib import pyplot all_data = [[1,10],[2,10],[3,10],[4,10],[5,10],[3,1],[3,2],[3,3],[3,4],[3,5]] x = [] y = [] for i in xrange(len(all_data)): x.append(all_data[i][0]) y.append(all_data[i][1]) plot.scatter(x,y) pyplot.show() 하지만 다음과 같이 만들 수있는 가능한 모든 줄을 원합니다. matplotlib 경로를 시도했지만 잘 작동하지 않습니다. 해결 방법 import matplotlib.pyplot as plt import..
2020. 9. 28.