What do you want to save?
Add Code snippet
New code examples
-
Other 2021-08-27 21:57:02
pixelart pygame
# Simple pygame project for pixelart import pygame screen = pygame.display.set_mode((1280, 720)) pixelart_surface = pygame.Surface((512, 288)) running = True while running: pixelart_surface.fill((0, 0, 0)) for event in pygame.event.get(): if eve... Add solution -
Python 2021-08-27 18:18:02
play .ogg files with python
# Install pyglet before starting from the command line >>> -m pip install pyglet # The code : import pyglet # Imports the module pyglet.options['search_local_libs'] = True # Allows pyglet to access files in your directory my_music = pyglet.m... Add solution -
SQL 2021-08-27 17:15:02
connect to sql server with python
import pyodbc # Some other example server values are # server = 'localhost\sqlexpress' # for a named instance # server = 'myserver,port' # to specify an alternate port server = 'tcp:myserver.database.windows.net' database = 'mydb' username = 'myusernam... Add solution