SAINS KOMPUTER & ASAS SAINS KOMPUTER
Pages
(Move to ...)
Home
BUKU TEKS
BANK SOALAN
▼
Monday, 15 July 2019
Segmen Kod Python Memapar Tarikh dan Masa.
Pengaturcaraan Python untuk memaparkan tarikh dan masa.
Copy dan paste segmen kod ini ke dalam aturcara anda.
import datetime
now = datetime.datetime.now()
print ("Tarikh / Masa :",(now.strftime("%d-%m-%Y %H:%M:%S")))
1 comment:
Unknown
25 November 2020 at 19:16
very helpfull
Reply
Delete
Replies
Reply
Add comment
Load more...
‹
›
Home
View web version
very helpfull
ReplyDelete