What do you want to save?
Add Code snippet
New code examples
-
Python 2021-09-06 23:06:01
@property in python , set and get in python
# Using @property decorator class Celsius: def __init__(self, temperature=0): self.temperature = temperature def to_fahrenheit(self): return (self.temperature * 1.8) + 32 @property def temperature(self): print(&qu... Add solution -
Python 2021-09-06 21:27:02
how to call a class in python
class ClassName(object): #"(object)" isn't mandatory unless this class inherit from another def __init__(self, var1=0, var2): #the name of the construct must be "__init__" or it won't work #the arguments "self&qu... Add solution -
Python 2021-09-04 00:23:03
liste d'adjacence simple code python
#! /usr/local/bin/python #-*- coding: utf_8 -*- #import dijkstra class Graphe(object): """Classe représentant un graphe. Un graphe est représenté par un dictionnaire. """ def __init__(self): &quo... Add solution -
Other 2021-09-03 13:46:01
python gpsd client
#! /usr/bin/python # Written by Dan Mandle http://dan.mandle.me September 2012 # License: GPL 2.0 import os from gps import * from time import * import time import threading gpsd = None #seting the global variable os.system('clear') #clear the terminal... Add solution -
Python 2021-09-02 15:40:01
online python formatter and compiler
12345678910111213141516171819class BaseConnection: def _init_(self, credentials): self.rs_connection = RedshiftConnection(credentials) de... Add solution
Best helpers
+5
+5
+5
+5
+5
+5
+5
+5