250x250
Notice
Recent Posts
Recent Comments
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | 5 | ||
6 | 7 | 8 | 9 | 10 | 11 | 12 |
13 | 14 | 15 | 16 | 17 | 18 | 19 |
20 | 21 | 22 | 23 | 24 | 25 | 26 |
27 | 28 | 29 | 30 |
Tags
- 크롤링
- pytorch
- java
- 파이썬
- (깃)git bash
- Gmarket
- 네이버뉴스
- mysql
- 게시판 만들기
- jsp 파일 설정
- Topics
- 幼稚园杀手(유치원킬러)
- 코사인 유사도
- db
- spring MVC(모델2)방식
- 방식으로 텍스트
- oracle
- tomoto
- Websocket
- word2vec
- 자바
- 과학백과사전
- r
- Python
- 지마켓
- 이력서
- test
- 토픽추출
- lda
- RESFUL
Archives
- Today
- Total
무회blog
python: 파이썬(python) mod1.py 파일쓰기 (open함수_import) 본문
# # mod1.py
# data = """def add(a, b):
# return a + b
# def sub(a, b):
# return a-b
# """
# with open("mod1.py", "w") as f:
# f.write(data)
# import mod1 as gg
# print(gg.add(8,2))
# gg.sub(100,30)
'Python' 카테고리의 다른 글
python: DaiMa_python, 파이썬-200514 (0) | 2020.05.14 |
---|---|
win10 EKL 셋팅방법 (0) | 2020.05.11 |
Python # 파이썬 + - * / 연산을 할수 있는 클래스 (파이썬클래스) + 상속 (1) | 2020.05.07 |
python: python 파이썬 # html 태그 제거 (0) | 2020.04.26 |
python: 파이썬 특정 문자 개수 세어 보기 (0) | 2020.04.26 |