per page, with , order by , clip by
Results of 1 - 10 of about 40 for How to (0.007 sec.)
how (42), to (309)
The Python Profilers 19260
The Python Profilers Source code: Lib/profile.py and Lib/pstats.py Introduction to the profilers cProfile and profile provide deterministic profiling of Python programs. A profile is a set of statistics that describes how often and for how ... long various parts of the program executed. These statistics can be formatted into reports via the pstats module. The Python standard library provides two different implementations of the same profiling in ... t Rosen and Ted Czotter. profile , a pure Python module whose interface is imitated by cProfile , but which adds significant overhead to profiled programs. If you're trying to extend the profiler in some way, the task might be easier with this modu ... n its own line. The format differs slightly depending on the profiler that produced the stats: With profile , a number is shown in parentheses after each caller to show how many times this specific call was made. For convenience, a second non-parent ...
https://man.mtool.work/python/3.14/library/profile.html
Argument Clinic How-To 19000
Argument Clinic How-To 注釈 Argument Clinic How-TOは、 Python Developer's Guide に移動しました。 他のマニュアルの関連ページ PHP language.types.declarations PHP zookeeper.requirements Linux JM sigqueue(3) PHP multipleiterator.construct PHP c ...
https://man.mtool.work/python/3.14/howto/clinic.html
Tk によるグラフィカルユーザーインターフェース 18523
Tk によるグラフィカルユーザーインターフェース Tk/Tcl は長きにわたり Python の不可欠な一部でありつづけています。 Tk/Tcl は頑健でプラットホームに依存しないウィンドウ構築ツールキットであり、 Python プログラマは tkinter パッケージやその拡張の t ... スタイル設定 レイアウト その他のウィジェット IDLE --- Python のエディタとシェル メニュー File メニュー (Shell ウィンドウ、Editor ウィンドウ) Edit メニュー (Shell ウィンドウ、Editor ウィンドウ) Format メニュー (Editor ウィンドウのみ) Run メニュー (Edi ... ドウのみ) Shell メニュー (Shell ウィンドウのみ) Debug メニュー (Shell ウィンドウのみ) Options メニュー (Shell ウィンドウ、Editor ウィンドウ) Window メニュー (Shell ウィンドウ、Editor ウィンドウ) Help メニュー (Shell ウィンドウ、Editor ウィンドウ) コン ... の制御 スクリーンイベントを利用する 入力メソッド 設定と特殊なメソッド Screen 専用のメソッド 公開クラス 例外 ハウツー・ガイド How to automatically begin and end filling How to use compound shapes How to use the turtle module namespace How to use turtle ...
https://man.mtool.work/python/3.14/library/tk.html
1. Extending Python with C or C++ 17023
1. Extending Python with C or C++ It is quite easy to add new built-in modules to Python, if you know how to program in C. Such extension modules can do two things that can't be done directly in Python: they can implement new built-in objec ... t types, and they can call C library functions and system calls. To support extensions, the Python API (Application Programmers Interface) defines a set of functions, macros and variables th ... at provide access to most aspects of the Python run-time system. The Python API is incorporated in a C source file by including the header "Pyt ... file is the C function that will be called when the Python expression spam.system(string) is evaluated (we'll see shortly how it ends up being called): static PyObject * spam_system ( PyObject * self , PyObject * args ) { const char * command ; int ...
https://man.mtool.work/python/3.14/extending/extending.html
Logging クックブック 16437
Logging クックブック Author : Vinay Sajip <vinay_sajip at red-dove dot com> このページは、過去に有用であるとされていた、logging に関連するいくつものレシピを含んでいます。チュートリアルやリファレンス情報へのリンクについては その他のリソース ... ) a = 1 + 1 self . logger . info ( 'done doing something' ) def some_function (): module_logger . info ( 'received a call to "some_function"' ) 出力はこのようになります: 2005-03-23 23:47:11,663 - spam_application - INFO - creating an instance of a ... O - calling auxiliary_module.some_function() 2005-03-23 23:47:11,672 - spam_application.auxiliary - INFO - received a call to 'some_function' 2005-03-23 23:47:11,673 - spam_application - INFO - done with auxiliary_module.some_function() 複数のスレッ ... gger2 = logging . getLogger ( 'myapp.area2' ) logger1 . debug ( 'Quick zephyrs blow, vexing daft Jim.' ) logger1 . info ( 'How quickly daft jumping zebras vex.' ) logger2 . warning ( 'Jail zesty vixen who grabbed pay from quack.' ) logger2 . error ( ...
https://man.mtool.work/python/3.14/howto/logging-cookbook.html
Python インタプリタの拡張と埋め込み 15963
Python インタプリタの拡張と埋め込み This document describes how to write modules in C or C++ to extend the Python interpreter with new modules. Those modules can not only define new functions but also new object types and their methods. The ... document also describes how to embed the Python interpreter in another application, for use as an extension language. Finally, it shows how to compile ... and link extension modules so that they can be loaded dynamically (at run time) into the interpreter, if the underlying operating system supports this feature. このドキュメントは、C と Python の基礎知識を前提 ... 、 Python/C API リファレンスマニュアル を参照してください。 おすすめのサードパーティツール This guide only covers the basic tools for creating extensions provided as part of this version of CPython. Some third party tools offer both simpler and more ...
https://man.mtool.work/python/3.14/extending/
turtle --- タートルグラフィックス 15408
turtle --- タートルグラフィックス ソースコード: Lib/turtle.py Turtle star 単純な動きを繰り返すプログラムで、タートルは複雑な図形を描けます。 x-y 平面の (0, 0) から動き出す、亀のロボットを想像してください。 import turtle の後に turtle.forwar ... 境を起動する Python シェルで、 turtle モジュールのすべてのオブジェクトをインポートします。 from turtle import * If you run into a No module named '_tkinter' error, you'll have to install the Tk interface package on your system. まだ何も表示されません ... 。 タートルを表示して、ウィンドウを開きましょう。 showturtle () 新しいウィンドウが開き、中央に東向きの矢印でタートルが表示されます。 基本的な描画 タートルを 100 歩前進させます。 ... 。 mode() を参照してください。 >>> turtle . heading () 22.0 >>> turtle . left ( 45 ) >>> turtle . heading () 67.0 turtle. goto ( x , y = None ) turtle. setpos ( x , y = None ) turtle. setposition ( x , y = None ) パラメータ : x -- 数または数のペア/ベ ...
https://man.mtool.work/python/3.14/library/turtle.html
email: 使用例 14944
email : 使用例 ここでは email パッケージを使って電子メールメッセージを読む・書く・送信するいくつかの例を紹介します。より複雑な MIME メッセージについても扱います。 まず、単純なテキストメッセージを作成して送信する方法を見てみましょう (テキスト ... ルアドレス # you == 受信者のメールアドレス msg [ 'Subject' ] = f 'The contents of { textfile } ' msg [ 'From' ] = me msg [ 'To' ] = you # 自分の SMTP サーバー経由でメッセージを送信します。 s = smtplib . SMTP ( 'localhost' ) s . send_message ( msg ) ... ありません) は、次のようにします: headers = Parser ( policy = default ) . parsestr ( 'From: Foo Bar <user@example.com> \n ' 'To: <someone_else@example.com> \n ' 'Subject: Test message \n ' ' \n ' 'Body would go here \n ' ) # これで、辞書としてヘッダー ... int ( line ) sys . exit () elif richest [ 'content-type' ] . subtype == 'html' : body = richest else : print ( "Don't know how to display {} " . format ( richest . get_content_type ())) sys . exit () elif richest [ 'content-type' ] . content_type == ...
https://man.mtool.work/python/3.14/library/email.examples.html
4. Windows で Python を使う 13944
4. Windows で Python を使う このドキュメントは、 Python を Microsoft Windows で使うときに知っておくべき、 Windows 固有の動作についての概要を伝えることを目的としています。 多くの Unix システムやサービスと異なり、Windows にはシステムでサポート ... ることは大きな利点です。 ここで説明する手順に進む前に、既存のツールから Python を直接入手できるか調べることをお勧めします。 To obtain Python from the CPython team, use the Python install manager. This is a standalone tool that makes Python available ... upports updates over time. You can download the Python install manager from python.org/downloads or through the Microsoft Store app . Once you have installed the Python install manager, the global python command can be used from any terminal to lau ... ersion of Python. This version may change over time as you add or remove different versions, and the py list command will show which is current. 一般に、プロジェクトごとに 仮想環境 を作成し、ターミナルで <env>\Scripts\Activate を実行して使うことをお ...
https://man.mtool.work/python/3.14/using/windows.html
signal --- 非同期イベントにハンドラーを設定する 13661
signal --- 非同期イベントにハンドラーを設定する ソースコード: Lib/signal.py このモジュールでは Python でシグナルハンドラを使うための機構を提供します。 一般的なルール signal.signal() 関数で、シグナルを受信したときに実行するハンドラーを定義で ... r ( SIG_DFL , SIG_IGN ) and sigmask ( SIG_BLOCK , SIG_UNBLOCK , SIG_SETMASK ) related constants listed below were turned into enums ( Signals , Handlers and Sigmasks respectively). getsignal() , pthread_sigmask() , sigpending() and sigwait() functi ... UIT 端末からの終了シグナル。 利用可能な環境 : Unix. signal. SIGSEGV セグメンテーション違反: 不正なメモリ参照。 signal. SIGSTOP 実行の停止 (捕捉や無視はできません)。 利用可能な環境 : Unix. signal. SIGSTKFLT コプロセッサーのスタック障害。 Linux カーネ ... た時間のプロファイリングに利用されます。タイマーが発火したときに SIGPROF を送ります。 signal. SIG_BLOCK pthread_sigmask() の how 引数に渡せる値で、シグナルがブロックされることを意味します。 Added in version 3.3. signal. SIG_UNBLOCK pthread_sigmask() の ...
https://man.mtool.work/python/3.14/library/signal.html
PREV 1 2 3 4 NEXT