Results of 1 - 10 of about 41 for character (0.005 sec.)
- unicodedata --- Unicode データベース 15806
- unicodedata --- Unicode データベース This module provides access to the Unicode Character Database (UCD) which defines character properties for all Unicode characters. The data contained in this database is compiled from the UCD version 16.
...0.0 . The module uses the same names and symbols as defined by Unicode Standard Annex #44, "Unicode Character Database" . It defines the following functions: 参考 Unicode とこのモジュールの使い方については Unicode HOWTO を参照してく...出します。 >>> unicodedata . numeric ( '½' ) 0.5 unicodedata. category ( chr ) Returns the general category assigned to the character chr as string. General category names consist of two letters. See the General Category Values section of the Unicode Chara...etter (文字)、'u'ppercase (大文字) 'Lu' unicodedata. bidirectional ( chr ) Returns the bidirectional class assigned to the character chr as string. If no such value is defined, an empty string is returned. See the Bidirectional Class Values section of the... - https://man.mtool.work/python/3.14/library/unicodedata.html
- xml.etree.ElementTree --- ElementTree XML API 10460
- xml.etree.ElementTree --- ElementTree XML API Source code: Lib/xml/etree/ElementTree.py xml.etree.ElementTree モジュールは、XML データの解析と作成を行うシンプルで効率的な API を実装しています。 バージョン 3.3 で変更: このモジュールは利用出来
...提供された、 2 つの名前空間を組み込んだ XML の例をここにお見せします: <?xml version="1.0"?> <actors xmlns:fictional= "http://characters.example.com" xmlns= "http://people.example.com" > <actor> <name> John Cleese </name> <fictional:character> Lancelot </fic...tional:character> <fictional:character> Archie Leach </fictional:character> </actor> <actor> <name> Eric Idle </name> <fictional:character>...Sir Robin </fictional:character> <fictional:character> Gunther </fictional:character> <fictional:character> Commander Clement </fictional:character> </act... - https://man.mtool.work/python/3.14/library/xml.etree.elementtree.html
- html.entities --- HTML 一般実体の定義 9854
- html.entities --- HTML 一般実体の定義 ソースコード: Lib/html/entities.py このモジュールは 4 つの辞書、 html5 、 name2codepoint 、 codepoint2name 、および entitydefs を定義しています。 html.entities. html5 HTML5 名前付き文字参照 [ 1 ] と Uni
...name Unicode コードポイントと HTML4 実体名とを対応付ける辞書です。 脚注 [ 1 ] https://html.spec.whatwg.org/multipage/named-characters.html#named-character-references を参照 他のマニュアルの関連ページ PHP intlchar.chr PHP mb_chr() PHP chr() Linux JM unicod...e(7) PHP intlchar.isulowercase PHP mb_substitute_character()... - https://man.mtool.work/python/3.14/library/html.entities.html
- codecs --- codec レジストリと基底クラス 9387
- codecs --- codec レジストリと基底クラス ソースコード: Lib/codecs.py このモジュールは、標準的な Python codec (エンコーダとデコーダ) 用の基底クラスを定義し、codec とエラー処理検索プロセスを管理する内部の Python codec レジストリへのアクセスを提
...ています。 'replace' 代替の文字に置き換えます。 エンコード時は ASCII 文字の ? 、デコード時は � (U+FFFD、正式名称 REPLACEMENT CHARACTER) を使います。 replace_errors() に実装されています。 'backslashreplace' バックスラッシュによるエスケープシーケンスに置き換え...replace' エラー処理を実装します。 エンコードエラーでは ASCII 文字の ? 、デコードエラーでは � (U+FFFD、正式名称 REPLACEMENT CHARACTER) に置き換えます。 codecs. backslashreplace_errors ( exception ) 'backslashreplace' エラー処理を実装します。 不正な形式のデ...が送出されます (エラーメッセージの細かいところは異なる場合があります。 ): UnicodeEncodeError: 'latin-1' codec can't encode character '\u1234' in position 3: ordinal not in range(256) 。 他のエンコーディングの一群 (charmap エンコーディングと呼ばれます) があ... - https://man.mtool.work/python/3.14/library/codecs.html
- xml.parsers.expat --- Expat を使用した高速な XML 解析 8781
- xml.parsers.expat --- Expat を使用した高速な XML 解析 注釈 信頼できないデータや、認証されていないデータを解析する場合は、 XML のセキュリティ を参照してください。 xml.parsers.expat モジュールは、妥当性検証を行わない XML パーサー Expat の Pyt
...れます。 xmlparser. buffer_text この属性を真にすると、 xmlparser オブジェクトは Expat が返すテキスト内容をバッファに保持し、 CharacterDataHandler() コールバックが複数回呼ばれることをできるだけ避けます。 Expat は通常、改行のたびに文字データを分割するため、こ...び出されます。 xmlparser. ProcessingInstructionHandler ( target , data ) 処理命令を処理するごとに呼び出されます。 xmlparser. CharacterDataHandler ( data ) 文字データに対して呼び出されます。 通常の文字データ、CDATA としてマークされた内容、無視可能な空白に対し...taSectionHandler 、 ElementDeclHandler のコールバックで必要な情報を収集できます。 短い文字データでも分割されることがあり、 CharacterDataHandler() が複数回呼び出される場合があります。 これを避けるには、インスタンス属性 buffer_text を True に設定してください... - https://man.mtool.work/python/3.14/library/pyexpat.html
- email.utils: 各種ユーティリティ 8626
- email.utils : 各種ユーティリティ ソースコード: Lib/email/utils.py email.utils モジュールには、いくつかの便利なユーティリティがあります: email.utils. localtime ( dt = None ) Return local time as an aware datetime object. If called without ar
...t = None , language = None ) Encode the string s according to RFC 2231 . Optional charset and language , if given, are the character set name and language name to use. If neither is given, s is returned as-is. If charset is given but language is not, the...us-ascii' ) When a header parameter is encoded in RFC 2231 format, Message.get_param() may return a 3-tuple containing the character set, language, and value. collapse_rfc2231_value() turns this into a string. Optional errors is passed to the errors argum...ent of str 's encode() method; it defaults to 'replace' . Optional fallback_charset specifies the character set to use if the one in the RFC 2231 header is not known by Python; it defaults to 'us-ascii' . 便宜上、 collapse_rfc2231... - https://man.mtool.work/python/3.14/library/email.utils.html
- Unicode オブジェクトと codec 8315
- Unicode オブジェクトと codec Unicode オブジェクト Python 3.3 で PEP 393 が実装されて以来、Unicode オブジェクトは内部で複数の表現形式を使っています。 これにより、メモリ効率を維持しながら Unicode 文字の全範囲を扱えます。 すべてのコードポイント
...を返します。 str.isascii() と等価です。 Added in version 3.2. Unicode 文字プロパティ Unicode は数多くの異なる文字プロパティ (character property) を提供しています。よく使われる文字プロパティは、以下のマクロで利用できます。これらのマクロは Python の設定に応じ...が大文字かどうかに応じて 1 または 0 を返します。 int Py_UNICODE_ISTITLE ( Py_UCS4 ch ) ch がタイトルケース文字 (titlecase character) かどうかに応じて 1 または 0 を返します。 int Py_UNICODE_ISLINEBREAK ( Py_UCS4 ch ) ch が改行文字かどうかに応じて 1 または...OTITLE ( Py_UCS4 ch ) ch をタイトルケース文字に変換したものを返します。 int Py_UNICODE_TODECIMAL ( Py_UCS4 ch ) Return the character ch converted to a decimal positive integer. Return -1 if this is not possible. This function does not raise exceptions. in... - https://man.mtool.work/python/3.14/c-api/unicode.html
- Unicode HOWTO 8315
- Unicode HOWTO Release : 1.12 この HOWTO 文書は、文字データの表現のための Unicode 仕様の Python におけるサポートについて論じ、さらに Unicode を使おうというときによく出喰わす多くの問題について説明します。 Unicode 入門 定義 今日のプログラムは広
...明で理解できなかった場合は、先に進む前にそちらの記事を読んでみてください。 Wikipedia の記事はしばしば役に立ちます; 例えば、" character encoding " や UTF-8 の記事を読んでみてください。 Python の Unicode サポート ここまでで Unicode の基礎を学びました、ここから...なかったときの対応方法を指定します。この引数に使える値は 'strict' ( UnicodeDecodeError を送出する)、 'replace' ( REPLACEMENT CHARACTER である U+FFFD を使う)、 'ignore' (結果となる Unicode から単に文字を除く) 、 'backslashreplace' (エスケープシーケンス \xNN...xde\xb4' >>> u . encode ( 'ascii' ) Traceback (most recent call last): ... UnicodeEncodeError : 'ascii' codec can't encode character '\ua000' in position 0: ordinal not in range(128) >>> u . encode ( 'ascii' , 'ignore' ) b'abcd' >>> u . encode ( 'ascii' ,... - https://man.mtool.work/python/3.14/howto/unicode.html
- tkinter.font --- Tkinter フォントラッパー 8315
- tkinter.font --- Tkinter フォントラッパー ソースコード: Lib/tkinter/font.py tkinter.font モジュールは、名前付きフォントの作成と利用のために Font クラスを提供します。 フォントの太さと傾きには次の種類があります: tkinter.font. NORMAL tkinter.f
...トリックの値を整数で返します。 オプションには次のものがあります: ascent - distance between baseline and highest point that a character of the font can occupy descent - distance between baseline and lowest point that a character of the font can occupy linesp...ace - minimum vertical separation necessary between any two characters of the font that ensures no vertical overlap between lines. fixed - 固定幅フォントなら 1、それ以外は 0 tkinter.font. fami... - https://man.mtool.work/python/3.14/library/tkinter.font.html
- 2. 字句解析 8315
- 2. 字句解析 Python プログラムは パーザ によって読み取られます。 パーザへの入力は、 字句解析器 (または トークナイザ ) が生成した トークン の列です。 この章では、字句解析器がこれらのトークンを生成する方法を説明します。 字句解析器はプログラムの
...e テキストに対して行われます。 Python のソースには、NUL 制御文字を除く任意の Unicode コードポイントを含められます。 source_character : <any Unicode code point, except NUL> 2.1.5. 明示的な行継続 二つまたはそれ以上の物理行を論理行としてつなげるためには、バッ...名前は次の字句定義で表されます。 NAME : name_start name_continue * name_start : "a" ... "z" | "A" ... "Z" | "_" | <non-ASCII character> name_continue : name_start | "0" ... "9" identifier : < NAME , except keywords> この文法に一致する名前がすべて有効なわけで...! "'" stringitem )* "'" | '"' ( ! '"' stringitem )* '"' stringitem : stringchar | stringescapeseq stringchar : <any source_character , except backslash and newline> longstringitem : stringitem | newline stringescapeseq : "\" <any source_character > すべて... - https://man.mtool.work/python/3.14/reference/lexical_analysis.html