Twitter • GitHub • instagram • Telegram
import json
from dataclasses import asdict, dataclass
@dataclass
class Stack:
languages : tuple = ("Golang", "Mandarin", "Python", "C++", "français", "English")
ongoing : tuple = ("CSAPP")
todos : tuple = ("JuliaLang", "Rust⚙️")
gears : tuple = ("Maths", "m1 mba", "vscode", "vim", "Debian", "raspi 4")
misc : tuple = ("TensorFlow", "Docker", "Mathematica")
edu : tuple = ("Sorbonne Université Campus Pierre et Marie Curie", "Beijing University of Technology")
def serialize(self):
return json.dumps(asdict(self), indent=4)
stack = Stack()
print(stack.serialize())
import json
from dataclasses import asdict, dataclass
@dataclass
class Stack:
languages : tuple = ("Golang", "Mandarin", "Python", "C++", "français", "English")
ongoing : tuple = ("CSAPP")
todos : tuple = ("JuliaLang", "Rust⚙️")
gears : tuple = ("Maths", "m1 mba", "vscode", "vim", "Debian", "raspi 4")
misc : tuple = ("TensorFlow", "Docker", "Mathematica")
edu : tuple = ("Sorbonne Université Campus Pierre et Marie Curie", "Beijing University of Technology")
def serialize(self):
return json.dumps(asdict(self), indent=4)
stack = Stack()
print(stack.serialize())