Plot lines and/or markers to the Axes. args is a variable length argument, allowing for multiple x, y pairs with an optional format string. For example, each of the following is legal:
plot(x, y) # plot x and y using default line style and color
plot(x, y, 'bo') # plot x and y using blue circle markers
plot(y) # plot y using x as index array 0..N-1
plot(y, 'r+') # ditto, but with red plusses
https://matplotlib.org/api/pyplot_api.html#matplotlib.pyplot.plot
로또 번호 자동 생성기 함수
import numpy as np
# np.random.choice(np.arange(1, 46), size=6)
# np.random.choice(np.arange(1, 46), size=6, replace=False)
def generate_lotto_nums():
return np.random.choice(np.arange(1, 46), size=6, replace=False)
generate_lotto_nums()
#array([33, 20, 14, 19, 10, 4])
'1. SW 개발 & IT 트렌드' 카테고리의 다른 글
AI 교육 싸이트 (0) | 2020.08.13 |
---|---|
Python - pandas Dataframe file (0) | 2020.07.23 |
Python - linalg 서브모듈 함수(선형대수 연산) (0) | 2020.07.22 |
numpy 기본 함수(numpy documentation) (0) | 2020.07.20 |
stream_framework_comparison_chart (0) | 2020.07.08 |
댓글