はてなブックマークアプリ

サクサク読めて、
アプリ限定の機能も多数!

アプリで開く

はてなブックマーク

  • はてなブックマークって?
  • アプリ・拡張の紹介
  • ユーザー登録
  • ログイン
  • Hatena

はてなブックマーク

トップへ戻る

  • 総合
    • 人気
    • 新着
    • IT
    • 最新ガジェット
    • 自然科学
    • 経済・金融
    • おもしろ
    • マンガ
    • ゲーム
    • はてなブログ(総合)
  • 一般
    • 人気
    • 新着
    • 社会ニュース
    • 地域
    • 国際
    • 天気
    • グルメ
    • 映画・音楽
    • スポーツ
    • はてな匿名ダイアリー
    • はてなブログ(一般)
  • 世の中
    • 人気
    • 新着
    • 新型コロナウイルス
    • 働き方
    • 生き方
    • 地域
    • 医療・ヘルス
    • 教育
    • はてな匿名ダイアリー
    • はてなブログ(世の中)
  • 政治と経済
    • 人気
    • 新着
    • 政治
    • 経済・金融
    • 企業
    • 仕事・就職
    • マーケット
    • 国際
    • はてなブログ(政治と経済)
  • 暮らし
    • 人気
    • 新着
    • カルチャー・ライフスタイル
    • ファッション
    • 運動・エクササイズ
    • 結婚・子育て
    • 住まい
    • グルメ
    • 相続
    • はてなブログ(暮らし)
    • 掃除・整理整頓
    • 雑貨
    • 買ってよかったもの
    • 旅行
    • アウトドア
    • 趣味
  • 学び
    • 人気
    • 新着
    • 人文科学
    • 社会科学
    • 自然科学
    • 語学
    • ビジネス・経営学
    • デザイン
    • 法律
    • 本・書評
    • 将棋・囲碁
    • はてなブログ(学び)
  • テクノロジー
    • 人気
    • 新着
    • IT
    • セキュリティ技術
    • はてなブログ(テクノロジー)
    • AI・機械学習
    • プログラミング
    • エンジニア
  • おもしろ
    • 人気
    • 新着
    • まとめ
    • ネタ
    • おもしろ
    • これはすごい
    • かわいい
    • 雑学
    • 癒やし
    • はてなブログ(おもしろ)
  • エンタメ
    • 人気
    • 新着
    • スポーツ
    • 映画
    • 音楽
    • アイドル
    • 芸能
    • お笑い
    • サッカー
    • 話題の動画
    • はてなブログ(エンタメ)
  • アニメとゲーム
    • 人気
    • 新着
    • マンガ
    • Webマンガ
    • ゲーム
    • 任天堂
    • PlayStation
    • アニメ
    • バーチャルYouTuber
    • オタクカルチャー
    • はてなブログ(アニメとゲーム)
    • はてなブログ(ゲーム)
  • おすすめ

    ChatGPT

『effbot.org』

  • 人気
  • 新着
  • すべて
  • Pillow Python: What it is and How to use it? – Programming Tutorial

    3 users

    effbot.org

    Python is an amazing language not just because it is easy to learn but it has lots of libraries and tools that make the job easy and cool. One such tool in python is Pillow. In Python, Pillow is one of the most popular tools to deal with digital images. Of course, we have other tools in python too like OpenCV, Scikit-image, PIL, etc. that do the same thing. Why do we use Pillow? After the disconti

    • テクノロジー
    • 2014/01/06 12:06
    • XPath Support in ElementTree

      4 users

      effbot.org

      Updated Sep 18, 2007 | Fredrik Lundh ElementTree provides limited support for XPath expressions. The goal is to support a small subset of the abbreviated syntax; a full XPath engine is outside the scope of the core library. The 1.2 release supports simple element location paths. In its simplest form, a location path is one or more tag names, separated by slashes (/). You can also use an asterisk (

      • テクノロジー
      • 2009/10/30 06:35
      • Python
      • Using PIL with Django

        3 users

        effbot.org

        Here’s a simple django view which creates a PIL image on the fly, and returns it as a PNG image: from django.utils.httpwrappers import HttpResponse from PIL import Image import random INK = "red", "blue", "green", "yellow" def image(request): # ... create/load image here ... image = Image.new("RGB", (800, 600), random.choice(INK)) # serialize to HTTP response response = HttpResponse(mimetype="imag

        • テクノロジー
        • 2009/10/25 23:51
        • PIL
        • django
        • image
        • The Python getattr Function

          4 users

          effbot.org

          December 7, 2005 | Fredrik Lundh Python’s getattr function is used to fetch an attribute from an object, using a string object instead of an identifier to identify the attribute. In other words, the following two statements are equivalent: value = obj.attribute value = getattr(obj, "attribute")If the attribute exists, the corresponding value is returned. If the attribute does not exist, you get an

          • テクノロジー
          • 2009/10/12 02:38
          • python
          • Pillow Python Tutorial in Details

            9 users

            effbot.org

            Python is an amazing language not just because it is easy to learn but it has lots of libraries and tools that make the job easy and cool. One such tool in python is Pillow. In Python, Pillow is one of the most popular tools to deal with digital images. Of course, we have other tools in python too like OpenCV, Scikit-image, PIL, etc. that do the same thing. Why do we use Pillow? After the disconti

            • テクノロジー
            • 2009/07/26 23:53
            • python
            • PIL
            • Graphics
            • 画像処理
            • image
            • Stupid Python Tricks: The KeyboardInterrupt Exception

              3 users

              effbot.org

              If you try to stop a CPython program using Control-C, the interpreter throws a KeyboardInterrupt exception. Unfortunately, this is an ordinary exception, and is, like all other exceptions, caught by a “catch-all” try-except statement. try: # do something except: # you'll end up here if something goes wrong, # or if the user presses control-c For example, if your program contains code like the foll

              • テクノロジー
              • 2009/05/22 17:59
              • Python
              • HTML Color Codes Picker | HEX, RGB Color Codes

                3 users

                effbot.org

                What is a color gradient? Color gradients, or color transitions, is a gradual blending from one color to another between same color tone (from light blue to navy blue), colors of two different tones (from blue to yellow), or even between more than two colors (from blue to purple to red to orange). It can be of tow types, LINEAR, in which color originates in a linear line or RADIAL, where color rad

                • テクノロジー
                • 2009/05/09 12:25
                • Python
                • Python Basics: Basics of Python Programming

                  10 users

                  effbot.org

                  What is Python? Python is one of the most popular general-purpose programming language which is used for almost all types of projects ranging from web development to mobile app development. Even though the Python Language is among us for the last 30 years, it grew tremendously in popularity in the last few years due to the advancement of Data Science. Why learn Python? Python is one of the popular

                  • テクノロジー
                  • 2009/03/27 02:24
                  • Python
                  • deferred
                  • Programming
                  • Thread Synchronization Mechanisms in Python

                    5 users

                    effbot.org

                    This article discusses how to synchronize access to shared resources and otherwise coordinate execution of threads. Synchronizing Access to Shared Resources One important issue when using threads is to avoid conflicts when more than one thread needs to access a single variable or other resource. If you’re not careful, overlapping accesses or modifications from multiple threads may cause all kinds

                    • テクノロジー
                    • 2008/12/19 12:54
                    • thread
                    • python
                    • Python XML and ElementTree Module

                      3 users

                      effbot.org

                      In this post, we have explained in detail how to deal with XML files in Python. We will also see some of the complex terms of ElementTree module. What are XML files? Extensible Markup Language (XML) is a file format that is used for the serialization of data, that is, storing, transmitting, and reconstructing arbitrary data, in a format that is both human-readable and machine-readable. As a markup

                      • テクノロジー
                      • 2008/10/02 09:20
                      • python
                      • Pillow Python: What it is and How to use it?

                        3 users

                        effbot.org

                        Python is an amazing language not just because it is easy to learn but it has lots of libraries and tools that make the job easy and cool. One such tool in python is Pillow. In Python, Pillow is one of the most popular tools to deal with digital images. Of course, we have other tools in python too like OpenCV, Scikit-image, PIL, etc. that do the same thing. Why do we use Pillow? After the disconti

                        • テクノロジー
                        • 2008/09/23 03:15
                        • python
                        • "The _imaging C module is not installed"

                          3 users

                          effbot.org

                          Also see the PIL FAQ (dead link). Why does PIL say “The _imaging C module is not installed”? The PIL library consists of two main parts: a number of Python modules, usually stored in a PIL subdirectory, and a binary extension module called _imaging. Depending on platform and version, the latter is stored in a file named _imaging.pyd, _imaging.dll or _imaging.so (or some variation thereof). If Pyth

                          • テクノロジー
                          • 2008/08/03 13:53
                          • python
                          • Python Basics: Basics of Python Programming

                            10 users

                            effbot.org

                            What is Python? Python is one of the most popular general-purpose programming language which is used for almost all types of projects ranging from web development to mobile app development. Even though the Python Language is among us for the last 30 years, it grew tremendously in popularity in the last few years due to the advancement of Data Science. Why learn Python? Python is one of the popular

                            • テクノロジー
                            • 2008/07/15 01:55
                            • python
                            • parser
                            • language
                            • Python XML and ElementTree Module

                              5 users

                              effbot.org

                              In this post, we have explained in detail how to deal with XML files in Python. We will also see some of the complex terms of ElementTree module. What are XML files? Extensible Markup Language (XML) is a file format that is used for the serialization of data, that is, storing, transmitting, and reconstructing arbitrary data, in a format that is both human-readable and machine-readable. As a markup

                              • テクノロジー
                              • 2008/05/22 17:39
                              • python
                              • dictionary
                              • List, Set, Tuple, and Dictionary Data Structures in Python

                                4 users

                                effbot.org

                                • テクノロジー
                                • 2008/05/15 14:23
                                • python
                                • cool
                                • Python Hash Algorithms

                                  4 users

                                  effbot.org

                                  July 11, 2002 | Fredrik Lundh This note describes how Python calculates hash values for some internal data types. Strings Strings (both 8-bit and Unicode) use the following hash function: class string: def __hash__(self): if not self: return 0 # empty value = ord(self[0]) << 7 for char in self: value = c_mul(1000003, value) ^ ord(char) value = value ^ len(self) if value == -1: value = -2 return va

                                  • テクノロジー
                                  • 2008/01/23 12:01
                                  • python
                                  • A Cache Status View for Django

                                    3 users

                                    effbot.org

                                    Fredrik Lundh | August 2007 Since I’m running effbot.org on a shared server with limited memory for long-running processes, I’m quite interested in keeping track of my Django application’s resource usage. As part of this, I wanted an easy way to see what the memcached server I’m using for caching is up to, and came up with a a simple Django view that grabs the current status from the server. Here’

                                    • テクノロジー
                                    • 2007/08/27 04:07
                                    • django
                                    • python
                                    • Adding Python Information to the Windows Registry

                                      4 users

                                      effbot.org

                                      February 19, 2003 | Fredrik Lundh Some Python distributions add information to the Windows registry when installed. This information is used by certain tools, such as the win32all installer and Windows installers generated by the distutils (dead link) package. If you’re using an unregistered Python environment, you’ll usually end up with an empty list of alternatives on the installer’s “Select Pyt

                                      • テクノロジー
                                      • 2007/07/25 16:18
                                      • python
                                      • Windows
                                      • The Console Module

                                        4 users

                                        effbot.org

                                        Updated December 2, 2000 | Fredrik Lundh The Console module provides a simple console interface, which provides cursor-addressable text output, plus support for keyboard and mouse input. The Console module is currently only available for Windows 95, 98, NT, and 2000. It probably works under Windows XP, but it hasn’t been tested on that platform. Software (including precompiled binaries) and docume

                                        • テクノロジー
                                        • 2007/01/19 12:25
                                        • python
                                        • The ElementSoup Module

                                          3 users

                                          effbot.org

                                          Fredrik Lundh | August 2006 The ElementSoup module is a (slightly experimental) wrapper for Leonard Richardson’s robust BeautifulSoup HTML parser, which turns the BeautifulSoup data structure into an element tree. The resulting combo is similar to ElementTidy, but a lot less picky. And therefore, a lot more practical. Which is good. Code (latest versions):ElementSoup.py [history] BeautifulSoup.py

                                          • テクノロジー
                                          • 2006/11/03 01:00
                                          • python
                                          • xml
                                          • html
                                          • Tkinter Python Python GUI with TK, Tkinterbook

                                            12 users

                                            effbot.org

                                            What is Tkinter?Tkinter is a standard library in Python that is used to create Graphical User Interface (GUI) based desktop applications. It is pronounced (Tk inter). It is a lightweight, easy-to-manage, and one of the most used libraries for making cross-platform desktop applications that can run on Windows, macOS, and Linux. The GUIs built with Tkinter might look outdated that lack modern shine

                                            • テクノロジー
                                            • 2006/09/10 23:47
                                            • Python
                                            • Tkinter
                                            • プログラミング
                                            • GUI
                                            • 解説
                                            • ElementTree Overview

                                              22 users

                                              effbot.org

                                              In this post, we have explained in detail how to deal with XML files in Python. We will also see some of the complex terms of ElementTree module. What are XML files?Extensible Markup Language (XML) is a file format that is used for the serialization of data, that is, storing, transmitting, and reconstructing arbitrary data, in a format that is both human-readable and machine-readable. As a markup

                                              • テクノロジー
                                              • 2006/08/28 23:44
                                              • ElementTree
                                              • python
                                              • XML
                                              • library
                                              • Python Basics: Basics of Python Programming

                                                3 users

                                                effbot.org

                                                What is Python?Python is one of the most popular general-purpose programming language which is used for almost all types of projects ranging from web development to mobile app development. Even though the Python Language is among us for the last 30 years, it grew tremendously in popularity in the last few years due to the advancement of Data Science. Why learn Python?Python is one of the popular p

                                                • テクノロジー
                                                • 2006/08/06 00:06
                                                • Python
                                                • Parked Page for: effbot.org

                                                  7 users

                                                  effbot.org

                                                  effbot.org Is another domain managed by easyDNS Technologies, Inc. Why we chose The best customer support anywhere Easy-to-use website builders and wizards Powerful DNS tools Powerful analytics reports They don't monetize or sell my data They protect my rights They don't datamine my email CLICK HERE TO FIND OUT HOW TO BUY EFFBOT.ORG EFFBOT.ORG MAY BE FOR SALE! This premium .ORG domain is maybe be

                                                  • テクノロジー
                                                  • 2006/03/22 18:45
                                                  • python
                                                  • library
                                                  • Blog
                                                  • (eff-bot) The Standard Python Library

                                                    4 users

                                                    effbot.org

                                                    Learn to Code: Python Tutorial | Tkinter | SQL | Pillow PIL | Python, JavaScript, C, C++, Data Science, Data Analytics

                                                    • テクノロジー
                                                    • 2006/02/09 15:49
                                                    • Python
                                                    • Learn to Code

                                                      9 users

                                                      effbot.org

                                                      Learn to Code: Python Tutorial | Tkinter | SQL | Pillow PIL | Python, JavaScript, C, C++, Data Science, Data Analytics

                                                      • テクノロジー
                                                      • 2005/10/28 18:03
                                                      • python
                                                      • code
                                                      • article
                                                      • プログラミング
                                                      • programming

                                                      このページはまだ
                                                      ブックマークされていません

                                                      このページを最初にブックマークしてみませんか?

                                                      『effbot.org』の新着エントリーを見る

                                                      キーボードショートカット一覧

                                                      j次のブックマーク

                                                      k前のブックマーク

                                                      lあとで読む

                                                      eコメント一覧を開く

                                                      oページを開く

                                                      はてなブックマーク

                                                      • 総合
                                                      • 一般
                                                      • 世の中
                                                      • 政治と経済
                                                      • 暮らし
                                                      • 学び
                                                      • テクノロジー
                                                      • エンタメ
                                                      • アニメとゲーム
                                                      • おもしろ
                                                      • アプリ・拡張機能
                                                      • 開発ブログ
                                                      • ヘルプ
                                                      • お問い合わせ
                                                      • ガイドライン
                                                      • 利用規約
                                                      • プライバシーポリシー
                                                      • 利用者情報の外部送信について
                                                      • ガイドライン
                                                      • 利用規約
                                                      • プライバシーポリシー
                                                      • 利用者情報の外部送信について

                                                      公式Twitter

                                                      • 公式アカウント
                                                      • ホットエントリー

                                                      はてなのサービス

                                                      • はてなブログ
                                                      • はてなブログPro
                                                      • 人力検索はてな
                                                      • はてなブログ タグ
                                                      • はてなニュース
                                                      • ソレドコ
                                                      • App Storeからダウンロード
                                                      • Google Playで手に入れよう
                                                      Copyright © 2005-2025 Hatena. All Rights Reserved.
                                                      設定を変更しましたx