파이썬(r4판 Blame)
| r4 | ||
|---|---|---|
| r1 (삭제된 사용자) | 1 | {{{#!syntax python |
| 2 | from math import sin, cos, tan | |
| 3 | print(sin(cos(not(cos(not(cos(not(cos(cos(sin(tan(tan(0))))))))))))) | |
| r2 | 4 | }}} |
| 5 | {{{#!syntax python | |
| 6 | import os | |
| 7 | import pygame | |
| 8 | import sys | |
| 9 | from pygame.locals import | |
| 10 | ||
| 11 | width = 1980 | |
| 12 | height = 1080 | |
| 13 | white = (255, 255, 255) | |
| 14 | black = ( 0, 0, 0) | |
| 15 | fps = (30) | |
| 16 | ||
| 17 | pygame.init() | |
| 18 | ||
| 19 | pygame.display.set_caption('hello, python!') | |
| 20 | displaysurf = pygame.display.set_mode((width, height), 0, 32) | |
| 21 | clock = pygame.time.Clock() | |
| 22 | ||
| 23 | ##더이상의 자세한 프로그래밍은 생략한다. | |
| r3 | 24 | }}} |
| r4 | 25 | |
| 26 | == 개요 == | |
| 27 | 초보자가 배우기엔 쉽지만, 라이브러리마다 호환되는 버전이 다른데, 이 경우 파이썬을 다운그레이드 해주어야하지만, 파이썬 다운그레이드만큼 어려운게 없다. | |
| r3 | 28 | [[분류:프로그래밍 언어]] |