GNU social JP
  • FAQ
  • Login
GNU social JPは日本のGNU socialサーバーです。
Usage/ToS/admin/test/Pleroma FE
  • Public

    • Public
    • Network
    • Groups
    • Featured
    • Popular
    • People

Untitled attachment

Download link

Notices where this attachment appears

  1. Embed this notice
    mixed berry social anxiety disorder 🍓 (monorail@glaceon.social)'s status on Sunday, 16-Jun-2024 02:24:36 JST mixed berry social anxiety disorder 🍓 mixed berry social anxiety disorder 🍓

    @Rasp like a class?

    class Character:
    def __init__(self, name, desc)
    self.name = name
    self.desc = desc

    my_character = Character('Todd', 'This is Todd')

    print(my_character.name) # Todd

    there's obviously a lot more you can do with classes (and there are shortcuts for classes that only do stuff like this) but this is kind of the most barebones use case

    In conversation about a year ago from glaceon.social permalink
  • Help
  • About
  • FAQ
  • TOS
  • Privacy
  • Source
  • Version
  • Contact

GNU social JP is a social network, courtesy of GNU social JP管理人. It runs on GNU social, version 2.0.2-dev, available under the GNU Affero General Public License.

Creative Commons Attribution 3.0 All GNU social JP content and data are available under the Creative Commons Attribution 3.0 license.