my_lesson325 Python - Django Python - Django Django 설치 [바로가기] Django 의 구조 Project > apps > models > fields 모델의 변경을 만드는 세 단계의 지침을 기억하세요. (models.py 에서) 모델을 변경하거나 생성합니다. python manage.py makemigrations을 통해 이 변경사항에 대한 마이그레이션을 만드세요. python manage.py migrate 명령을 통해 변경사항을 데이터베이스에 적용하세요. Django models add null field class Person(models.Model): name = models.CharField(max_length=255) # 필수 bio = models.TextField(max_length=500, blan.. 2019. 6. 19. C++ - Array_For_BingoGame ver 1.0 C++ - Array_For_BingoGame ver 1.0 Create numbers 1 to 25 at iBingo Shuffle numbers Input 5 numbers 1 to 25 at iInput Compare btween iBingo to iInput Bingo line check If it is more 4 lines, output BINGO !! array_for_bingoGame.cpp // Let's play bingo Game #include #include #include #include "MyLib.h" using namespace std; #define MATRIX 25 #define BINGO 5 void CreateNum(int* pArr, int sizeTot); voi.. 2019. 4. 27. C++ - Array_For_numberPuzzleGame ver 1.0 CPP - Array_For_numberPuzzleGame ver 1.0 Mission : Let's make a game fo numberPuzzle Create a array size of 25 Asignment a value 1 to 24 and last value is INT_MAX Shuffle the array and shuffle except the last value. Replace INT_MAX with '*'. Use "w : up s : down a : left d : right q : quit " to move "*" array_for_numberPuzzleGame.cpp // array_ for _numberPuzzle Game #include #include #include #i.. 2019. 4. 26. C++ - For 반복문 별그리기 ver 1.0 , ver 1.1 CPP - For 반복문 별그리기 ver 1.0 , ver 1.1 별그리기 Ver 1.0 // Make a diamond by * /* ......*...... .....***..... ....*****.... ...*******... ....*****.... .....***..... ......*...... */ #include using namespace std; void makeDiamond(int iIput); int main() { long long iInput, iCount; while (true) { cout > iInput; if (iInput % 2 == 1) { cout 2019. 4. 24. GIT - Github + Existing project on visual studio Git - Github + Existing project on visual studio 1. Create a Github Account :: https://booolean.tistory.com/443 2. Add Github Plugin by Extention and update on Visual studio 설치를 선택하고 visual studio를 종료해야 설치가 진행된다. visual studio를 다시 실행하고 3. 계정에 로그인후에 저장소 생성 번호 순서대로 정보를 입력한다 이때 원격(Github)에 이름이 같은 저장소가 있거나 로컬(내컴퓨터)에 동일한 이름이 있을경우 그 이름을 사용할 수 없다 기존 폴더명을 변경하거나 다른 이름으로 해야 한다. 저장소 명하고 프로젝트 명은 같아야 한다. 4. .. 2019. 4. 23. Python - C/C++ API Reference Manual Interface Stable Application Binary Interface 전통적으로 Python의 C API는 모든 릴리스마다 변경 될 것입니다. 대부분의 변경 사항은 기존 API를 변경하거나 API를 제거하지 않고 (일부 인터페이스는 먼저 사용 중지 된 후에 제거됨) 일반적으로 API 만 추가하여 소스와 호환됩니다. 아쉽게도 API 호환성은 ABI (이진 호환성)로 확장되지 않습니다. 그 이유는 기본적으로 구조체 정의가 진화 한 것이므로 새로운 필드를 추가하거나 필드의 유형을 변경하면 API가 손상되지는 않지만 ABI가 손상 될 수 있습니다. 결과적으로 확장 모듈은 파이썬 릴리스마다 다시 컴파일해야합니다 (영향을받는 인터페이스가 사용되지 않는 경우 유닉스에서 예외가 가능함). 또한 Windows에서 확장 모듈은.. 2019. 4. 19. 이전 1 2 3 4 5 6 7 8 ··· 55 다음