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
- (깃)git bash
- 게시판 만들기
- 자바
- 지마켓
- r
- pytorch
- spring MVC(모델2)방식
- 크롤링
- 幼稚园杀手(유치원킬러)
- 파이썬
- mysql
- RESFUL
- lda
- jsp 파일 설정
- db
- Gmarket
- word2vec
- 네이버뉴스
- 이력서
- java
- Python
- 코사인 유사도
- 방식으로 텍스트
- Websocket
- 토픽추출
- tomoto
- 과학백과사전
- test
- Topics
- oracle
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 |
Comments