This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python2 | |
# coding: utf-8 | |
from __future__ import print_function | |
import sys | |
import re | |
import json | |
import urllib | |
from colorama import init, Fore, Back, Style | |
URL = 'http://csearch.naver.com/dcontent/spellchecker.nhn' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 자판기에 돈 넣고 동전 돌려받자 | |
#include <stdio.h> | |
int main() { | |
int coin, price, num, back, five, one; | |
printf("투입할 금액을 입력하세요: "); | |
scanf("%d", &coin); | |
printf("제품의 금액을 입력하세요: "); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <stdio.h> | |
int main() { | |
for (int i = 1; i <= 9; i++) { | |
for (int j = 1; j <= 9; j++) { | |
printf("%d", j); | |
} | |
printf("\n"); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <stdio.h> | |
int main() { | |
for (int i = 1; i <= 20; i++) { | |
for (int a = 20; a > i; a--) { | |
printf(" "); | |
} | |
for (int j = 0; j < i; j++) { | |
printf("*"); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <stdio.h> | |
int main() { | |
for (int i = 0; i < 20; i++) { | |
for (int a = 0; a < i; a++) { | |
printf(" "); | |
} | |
for (int j = 20; j > i; j--) { | |
printf("*"); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <stdio.h> | |
int main() { | |
for (int i = 0; i < 20; i++) { | |
for (int j = 20; j > i; j--) { | |
printf("*"); | |
} | |
printf("\n"); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# -*- coding: utf-8 -*- | |
# 랜덤 숫자 1~5 | |
from random import randint | |
a = randint(1, 5) | |
b = randint(1, 5) | |
c = randint(1, 5) | |
# 랜덤 숫자 1~5 | |
# a = 2 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <stdio.h> | |
int main() { | |
int i, j; | |
printf("%22s\n\n", "구 구 단"); | |
printf("%6s %8s %8s %8s\n", "2단", "3단", "4단", "5단"); | |
for (i = 1; i < 10; i++) { | |
for (j = 2; j < 6; j++) { | |
printf("%d*%d = %2d ", j, i, i*j); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <stdio.h> | |
#define RANGE 10 | |
int main() { | |
int kk[RANGE] = { 1, 2, 3, 4, 5, 6, 7, 8, 9, 10 }; | |
int i, j, move, temp; | |
printf("몇 번 이동 시키겠습니까? "); | |
scanf_s("%d", &move); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# -*- coding: utf-8 -*- | |
from time import sleep | |
from tkinter import messagebox | |
from urllib.request import urlopen | |
import urllib.error | |
def net_connection_on(): | |
try: |
OlderNewer