# python 學習筆記 ###### tags: `python` `singleton` ## Singleton 看字的意思就知道跟「唯一」有關係,singleton 就是在程式運行後可以保證只有一個 object 在記憶體中被建立,通常用來產生一些必須維持唯一性的物件,比如 serial port 之類的 * singleton 以及解說:https://mark1002.github.io/2018/07/31/python-%E5%AF%A6%E7%8F%BE-singleton-%E6%A8%A1%E5%BC%8F/ * singleton with thread-safe:https://stackoverflow.com/a/50567397 ## Decorator * https://stackoverflow.com/a/10176276 ## rx + async/await * https://blog.oakbits.com/rxpy-and-asyncio.html
×
Sign in
Email
Password
Forgot password
or
By clicking below, you agree to our
terms of service
.
Sign in via Facebook
Sign in via Twitter
Sign in via GitHub
Sign in via Dropbox
Sign in with Wallet
Wallet (
)
Connect another wallet
New to HackMD?
Sign up