일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |
- ipad
- dataframe
- Button
- GitHub
- mariadb
- CNN
- imread
- synology
- DFS
- Series
- RNN
- mean
- Numpy
- Python
- LSTM
- E-P1
- GT-S80
- SPL
- index
- keras
- Splunk
- Lotto
- pandas
- 알고리즘
- 삼성소프트웨어멤버십
- install
- pycharm
- SciPy
- pip
- javascript
- Today
- Total
목록잠토네 잠수함 (493)
잠토의 잠망경
내용 참고함 이미 GitHub, Git Server, Gogs 같은 곳에 Repository가 있다고 전제한다. terminal 오픈, 아래 입력 $git init $git add . $git commit -m "commit message" $git remote add origin $git push origin master
bookgithub github main source from dlgo.ttt.ttttypes import Point from dlgo.ttt.ttttypes import Player from dlgo.ttt.tttboard import GameState from dlgo.ttt.tttboard import Move from dlgo.minmax.minmax import MinMaxAgent from six.moves import input COL_NAMES = 'ABC' def print_board(board)->None: print(' A B C') for row in (1, 2, 3): pieces = [] for col in (1, 2, 3): piece = board..
1차 coding github from dlgo.goboard_slow import Board from dlgo.goboard_slow import GameState from dlgo.gotypes import Player from dlgo.agent import naive import time from dlgo.utils import print_board, print_move, clear_screen def main(): board_size = 9 game = GameState.new_game(board_size) # 9*9가 만들어진다. bots = { Player.black : naive.RandomBot(), Player.white : naive.RandomBot() } while not game..
github set 기본기능 set의 특징 무질서 중복제거 code github #region::sample s1 = set([1,2,3,4]) print(s1) print(len(s1)) print(type(s1)) s2 = set('hello') print(s2) print(len(s2)) s3 = set() print(s3) print(len(s3)) #endregion 결과 {1, 2, 3, 4} 4 {'e', 'h', 'l', 'o'} 4 set() 0set에서 교집합, 차집합, 합집합 code github # region::union,difference,intersection s1 = set([1,2,3,4,5,6,7,8]..
기본 활용 클래스 같은 tuple형태이다. tuple은 한번 적용하면 변경 불가한 const 같은 것으로 가독성을 위하여 namedtuple을 사용하는 것이다. github code from collections import namedtuple CTest = namedtuple("CTest", "row col num num1") test01 = CTest(1,2,3,4) print('row: {0}, col: {1}, num: {2}, num1: {3}'.format(test01.row, test01.col, test01.num, test01.num1)) # tuple 이기때문에 변경은 안된다. test01.row = 10 print('row: {0}, col: {1}, num: {..
group 하고 그 안에서 가장 큰 것을 찾기 github var temp1 = (from t in temp group t by new {t.kind01} into g select new { g.Key, GList = g.OrderByDescending(z => z.num).First() }).Select(z => z.GList).ToList(); var temp2 = (from t in temp group t by new {t.kind01} into g select new { GList = g.OrderByDescending(z => z.num).First() }).ToList();
참고 pycharm에서는 실행에 unitest 부분이 있다. 이걸로 실행한다. sample code def add(a, c): return a+c def mul(a, c): return a*c def divided(a, c): return a/c test code github import unittest import sample.myCalc as myCalc class myCalcTest(unittest.TestCase): def test_add(self): c = myCalc.add(10, 30) self.assertEqual(c, 40) def test_mul(self): c = myCalc.mul(10, 30) self.assertEqual(c, 300) def test_divided(self): ..