What do you want to save?
Add Code snippet
New code examples
-
Python 2022-01-23 14:40:48
discord.py cog classes
from discord.ext import commands class Test_Cog(commands.Cog): def __init__(self, bot): self.bot = bot # defining bot as global var in class @commands.Cog.listener() # this is a decorator for events/listeners async def on_ready(self): ... Add solution -
Python 2022-01-22 19:40:46
python build a snapchat filter
import argparse import cv2 from imutils.video import VideoStream from imutils import face_utils, translate, resize import time import dlib import numpy as np parser = argparse.ArgumentParser() parser.add_argument("-predictor", required=True,... Add solution -
Python 2022-01-22 11:00:59
how to make basic minecraft in python
#How to make basic MINECRAFT in python? You are in the right place! ''' For this project, you need ursina installed. If you dont have ursina installed, use this command pip install ursina and then wait for the process to finish ''' #import ursina and t... Add solution -
Python 2022-01-22 04:00:41
__init__ python
class Person: def __init__(self, name): self.name = name Add solution -
Python 2022-01-22 02:31:20
use a singly linked list create a stack python
'''Python supports automatic garbage collection so deallocation of memory is done implicitly. However to force it to deallocate each node after use, add the following code: import gc #added at the start of program gc.collect() #... Add solution