SpiceQA
Questions
Tags
Users
Badges
Build a class with an attribute in one line
user_1187968
0
Created Jul 13, 2017
Edited Jul 13, 2017
Viewed 2502
Follow
How do I write a one-liner for the following?
class MyClass(): content = {} obj = MyClass()
python-3.x
class
python
5
0
Add comment
+
Share
1 Answers
Related