LogIn E-mail
설계이야기
모듈 사용하기
# 4 JMJS    19.11.11 09:35

>>> help("modules")
...

[모듈 사용법]
import datetime
import math
import math as m
from math import pi
from math import *

# import datetime
now = datetime.datetime.now()
print(now)

# import math
print("The value of pi is", math.pi)

# import math as m
print("The value of pi is", m.pi)

# from math import pi
print("The value of pi is", pi)

# from math import *
print("The value of e is", e)

게시물: 32 건, 현재: 1 / 1 쪽
번호 제       목 작성자 등록일 방문
33  [bpy]bone2_wr.py JMJS 23.9.23 5
32  [bpy]bm.verts depsgraph JMJS 23.9.23 5
31  [bpy]keyframe_insert JMJS 23.9.23 5
30  [bpy]key_blocks JMJS 23.9.23 6
29  def abc (a=10,b=20,c=30) JMJS 23.8.1 19
28  shape prj JMJS 23.7.28 18
27  yaml JMJS 23.7.28 22
26  getopt arg argv JMJS 23.7.26 24
25  pg.mouse.get_pressed() pg.mouse.get_pos() JMJS 22.11.20 110
24  pg.MOUSEBUTTONDOWN event.button JMJS 22.11.20 96
23  모두의 파이썬 - 20일만에배우는 프로그래밍 기초 JMJS 20.1.8 143
22  python -m pip install -U pip JMJS 19.11.25 162
21  get =lambda i,m ... JMJS 19.11.13 164
20  2차원 리스트, 튜플 JMJS 19.11.13 153
19  [turtle]def polygon3(n,c,d) JMJS 19.11.11 170
18  [turtle]def polygon2(n,a) JMJS 19.11.11 160
17  def factorial(n) JMJS 19.11.11 157
16  def sum_func(n) JMJS 19.11.11 163
15  def hello() fun1(a) fun2(a,b) JMJS 19.11.11 159
14  while sum JMJS 19.11.11 159
13  random calculation JMJS 19.11.11 151
12  turtle random JMJS 19.11.11 150
11  import time time.time JMJS 19.11.11 150
10  turtle begin_fill end_fill JMJS 19.11.11 154
9  if else JMJS 19.11.11 151
8  input JMJS 19.11.11 155
7  list JMJS 19.11.11 159
6  turtle triangle JMJS 19.11.11 155
5  for range JMJS 19.11.11 149
4  모듈 사용하기 JMJS 19.11.11 154
3  import 파이썬 모듈 가져다 쓰기 JMJS 19.11.11 164
1  print 줄바꿈 JMJS 19.11.11 189
[1]