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

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

Embed Notice

HTML Code

Corresponding Notice

  1. Embed this notice
    Mariatta 🤦🏻‍♀️ :python: (mariatta@fosstodon.org)'s status on Thursday, 05-Sep-2024 03:25:49 JSTMariatta 🤦🏻‍♀️ :python:Mariatta 🤦🏻‍♀️ :python:

    How to check if a string is ASCII in Python?

    Use: `str.isascii()` and this is available since Python 3.7.

    If you ask this question on search engine or stack overflow, you might end up at older answers that tells you to do stuff like:

    all(ord(c) < 128 for c in s)

    Don't do that 😓

    #Python #Learning

    In conversationabout 10 months ago from fosstodon.orgpermalink
  • 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.