Notice: This page requires JavaScript to function properly.
Please enable JavaScript in your browser settings or update your browser.
学ぶ What Time is it Now? | Working with Times
Dealing with Dates and Times in Python
セクション 2.  1
single

single

bookWhat Time is it Now?

メニューを表示するにはスワイプしてください

Let's expand the objects we will work with. In this section, we will learn how to work not only with dates but with times also. This time we will work with datetime class of the datetime library.

A datetime object has 6 additional arguments compared to a date object. These are hour (0-24), minute (0-60), second (0-60), microsecond (0-1000000), tzinfo, and fold (used for local times).

タスク

スワイプしてコーディングを開始

Import datetime class from datetime library. Print current date and time using .now() method of datetime class. Please note, that .now() returns local time and since the code is executed on a dedicated server it shows GMT.

解答

Switch to desktop実践的な練習のためにデスクトップに切り替える下記のオプションのいずれかを利用して、現在の場所から続行する
すべて明確でしたか?

どのように改善できますか?

フィードバックありがとうございます!

セクション 2.  1
single

single

AIに質問する

expand

AIに質問する

ChatGPT

何でも質問するか、提案された質問の1つを試してチャットを始めてください

some-alt