Метод строки isidentifier() поможет узнать, подходит ли данная строка в качестве имени объекта.
Вполне может заменить самостоятельно придуманную регулярку.
>>> 'some_name'.isidentifier()
True
Обычное имя переменной
>>> '私は手紙です'.isidentifier()
True
Юникод в качестве имени тоже доступен
>>> '1_name'.isidentifier()
False
Имя не может начинаться с цифры
>>> '੬_name'.isidentifier()
False
Включая все цифры юникода
>>> 'some name'.isidentifier()
False
Пробелы недопустимы
#basic
🔖 An Opinionated Guide to Using Anki Correctly — LessWrong #pinboard#anki
很久没有试着去背点什么事情了,我从小就很不会背书。最近跟我一位老登同事聊天,他总是能将他看过的作品很完整地复述出来。感觉有点超能力了,而我很多时候连看完的漫画主角都不记得叫什么名字。
https://www.lesswrong.com/posts/7Q7DPSk4iGFJd8DRk/an-opinionated-guide-to-using-anki-correctly
🤖 Nuevo robot
📋 Nombre: memo_card_bot
🆔 Nombre de usuario: @memo_card_bot
⭐️ Calificación: ⭐️⭐️⭐️⭐️ (4.2/5 sobre 46 votos)
➖➖➖
ℹ️Descripción: Mejora tu memoria con repetición espaciada. Aprenda idiomas, historia u otras materias con el método probado de tarjetas didácticas.
🌐 Idiomas: Inglés Español Ruso Portugués
💬 Soportes en línea: sí
👥 Grupos: no
#️⃣ Etiquetas: #flashcard#memoria#anki#inglés
#typescript#anki#chatgpt#deepseek#electron#evernote#knowledge_base#local_first#markdown#note_taking#notes_app#notion#obsidian#ocr#ollama#openai#pdf#s3#self_hosted#webdav
SiYuan is a privacy-first personal knowledge management tool. It allows you to organize your thoughts and notes in a secure way, even offline. You can use features like block-level references, Markdown editing, and mathematical formulas. It also supports AI tools and has apps for Android, iOS, and HarmonyOS. SiYuan is open source and free for most features, making it a great choice for managing your personal knowledge securely.
https://github.com/siyuan-note/siyuan