Results of 1 - 8 of about 8 for month (0.009 sec.)
- calendar --- 一般的なカレンダーに関係する機能群 13610
- calendar --- 一般的なカレンダーに関係する機能群 ソースコード: Lib/calendar.py このモジュールは Unix の cal プログラムのようなカレンダー出力を行い、それに加えてカレンダーに関する有益な関数群を提供します。標準ではこれらのカレンダーは(ヨーロッ
...ys ( ) 1 週間に使う曜日番号のイテレーターを返します。 イテレーターの最初の値は firstweekday プロパティの値と同じです。 itermonthdates ( year , month ) year 年 month (1--12) 月に対するイテレータを返します。 このイテレータはその月の全ての日、およびその月...る前の日とその月が終わった後の日のうち、週の欠けを埋めるために必要な日を ( datetime.date オブジェクトとして) 返します。 itermonthdays ( year , month ) itermonthdates() と同様に year 年 month 月のイテレーターを返しますが、 datetime.date の範囲には制限さ...れません。 各日は単に月内の日を表す数値として返されます。 指定した月に含まれない日は 0 です。 itermonthdays2 ( year , month ) itermonthdates() と同様に year 年 month 月のイテレーターを返しますが、 datetime.date の範囲には制限さ... - https://man.mtool.work/python/3.14/library/calendar.html
- datetime --- 基本的な日付と時間の型 9597
- datetime --- 基本的な日付と時間の型 ソースコード: Lib/datetime.py datetime モジュールは、日付や時刻を操作するためのクラスを提供しています。 日付や時刻に対する算術がサポートされている一方、実装では出力のフォーマットや操作のための効率的な属性
...ive な日付で、これまでもこれからも現在のグレゴリオ暦 (Gregorian calender) が有効であることを仮定しています。 属性は year , month ,および day です。 class datetime. time 理想的な時刻で、特定の日から独立しており、毎日が厳密に 24*60*60 秒であると仮定して...te , second , microsecond , および tzinfo です。 class datetime. datetime 日付と時刻を組み合わせたものです。 属性は year , month , day , hour , minute , second , microsecond , および tzinfo です。 class datetime. timedelta datetime あるいは date クラス...を表します。 1 年 1 月 1 日は日番号 1、1 年 1 月 2 日は日番号 2 と呼ばれ、他も同様です。 [ 2 ] class datetime. date ( year , month , day ) 全ての引数が必須です。 引数は整数で、次の範囲に収まっていなければなりません: MINYEAR <= year <= MAXYEAR 1 <= month... - https://man.mtool.work/python/3.14/library/datetime.html
- DateTime オブジェクト 8693
- DateTime オブジェクト datetime モジュールでは、様々な日付オブジェクトや時刻オブジェクトを提供しています。以下に示す関数を使う場合には、あらかじめヘッダファイル datetime.h をソースに include し ( Python.h はこのファイルを include しません)、
...ません。この関数は常に成功します。 以下はオブジェクトを作成するためのマクロです: PyObject * PyDate_FromDate ( int year , int month , int day ) 戻り値: 新しい参照。 指定した年、月、日の datetime.date オブジェクトを返します。 PyObject * PyDateTime_FromDat...eAndTime ( int year , int month , int day , int hour , int minute , int second , int usecond ) 戻り値: 新しい参照。 指定した年、月、日、時、分、秒、マイク...ロ秒の datetime.datetime オブジェクトを返します。 PyObject * PyDateTime_FromDateAndTimeAndFold ( int year , int month , int day , int hour , int minute , int second , int usecond , int fold ) 戻り値: 新しい参照。 指定された年、月、日、時、分... - https://man.mtool.work/python/3.14/c-api/datetime.html
- 2. 字句解析 8133
- 2. 字句解析 Python プログラムは パーザ によって読み取られます。 パーザへの入力は、 字句解析器 (または トークナイザ ) が生成した トークン の列です。 この章では、字句解析器がこれらのトークンを生成する方法を説明します。 字句解析器はプログラムの
...理行を構成し、バックスラッシュおよびバックスラッシュの後ろにある行末文字を削除します。例えば: if 1900 < year < 2100 and 1 <= month <= 12 \ and 1 <= day <= 31 and 0 <= hour < 24 \ and 0 <= minute < 60 and 0 <= second < 60 : # 有効な日時のように見える ret...な行継続 丸括弧、角括弧、波括弧の中の式は、バックスラッシュを使わずに複数の物理行に分割できます。 例えば次のように書きます。 month_names = [ 'Januari' , 'Februari' , 'Maart' , # これらは 'April' , 'Mei' , 'Juni' , # オランダ語の 'Juli' , 'Augustus' , 'S... - https://man.mtool.work/python/3.14/reference/lexical_analysis.html
- プログラミング FAQ 8097
- プログラミング FAQ 一般的な質問 ブレークポイントやステップ実行ができる、ソースコードレベルのデバッガはありますか? はい。 Python 用のデバッガについては次に解説してあり、組み込みの breakpoint() 関数でそれらのデバッガに処理を移せます。 pdb モジ
...遅すぎます。 これらのイミュータブルクラスはすべて、親クラスと異なるシグネチャを持ちます: import datetime as dt class FirstOfMonthDate ( dt . date ): "常にその月の初日を選ぶ" def __new__ ( cls , year , month , day ): return super () . __new__ ( cls , ye...ar , month , 1 ) class NamedInt ( int ): "一部の数値を文字列の名前で指定できるようにする" xlat = { 'zero' : 0 , 'one' : 1 , 'ten' : 1...c for c in s if c . isalnum () or c == '-' ]) return super () . __new__ ( cls , s ) クラスはこのように使えます: >>> FirstOfMonthDate ( 2012 , 2 , 14 ) FirstOfMonthDate(2012, 2, 1) >>> NamedInt ( 'ten' ) 10 >>> NamedInt ( 20 ) 20 >>> TitleStr ( 'Blog:... - https://man.mtool.work/python/3.14/faq/programming.html
- pprint --- データの整形表示 8097
- pprint --- データの整形表示 ソースコード: Lib/pprint.py pprint モジュールは、任意の Python データ構造を、インタープリタへの入力に使える形式で「整形表示」する機能を提供します。 整形するデータ構造に Python の基本的な型以外のオブジェクトが含ま
...iate.', 'description_content_type': None, 'docs_url': None, 'download_url': 'UNKNOWN', 'downloads': {'last_day': -1, 'last_month': -1, 'last_week': -1}, 'home_page': 'https://github.com/pypa/sampleproject', 'keywords': 'sample setuptools development',... - https://man.mtool.work/python/3.14/library/pprint.html
- What's New in Python 2.3 8007
- What's New in Python 2.3 著者 : A.M. Kuchling この文書は Python 2.3 の新機能について解説します。Python 2.3 は 2003 年 7 月 29 日にリリースされました。 Python 2.3 の主要なテーマは、2.2 で追加されたいくつかの機能を磨くこと、言語中核に小さいな
...ロジックは抽象クラス tzinfo から派生したクラスにより実装されます。 date と time のインスタンスは、 datetime.date(year=1972, month=10, day=15) のようにコンストラクターへキーワード引数を渡すか、用意されたいずれかのクラスメソッドを使って作成できます。 例え... - https://man.mtool.work/python/3.14/whatsnew/2.3.html
- What's New In Python 3.12 8007
- What's New In Python 3.12 編集者 : Adam Turner この記事では Python 3.11 と比較した Python 3.12 の新機能を解説します。Python 3.12 は2023年10月2日にリリースされました。全詳細については 変更履歴 をご覧ください。 参考 PEP 693 -- Python 3.12 リリ
...レータを受け付けるようになりました。 (Kumar Aditya が gh-78530 で貢献しました。) calendar 月と曜日を定義する列挙型 calendar.Month と calendar.Day を追加しました。 (Prince Roshan が gh-103636 で貢献しました。) csv reader オブジェクトと writer オブジェク... - https://man.mtool.work/python/3.14/whatsnew/3.12.html
PREV
1
NEXT