頁:
[1]
關於python的這些預設參數要去哪裡抓?(已解決,感謝各位前輩)
本帖最後由 chialewang 於 2019-8-6 08:40 PM 編輯各位前輩 您們好:
#內建日期時間模組
import datetime
update_time=datetime.datetime.now()
print(update_time);
print(update_time.year);
print(update_time.month);
print(update_time.day);
print(update_time.strftime("%A"));#抓星期幾
print(update_time.strftime("%B"));#抓月份
請問我要搜尋甚麼,才能夠找到相關資料?
麻煩有空的前輩指點一下 感恩
...<div class='locked'><em>瀏覽完整內容,請先 <a href='member.php?mod=register'>註冊</a> 或 <a href='javascript:;' onclick="lsSubmit()">登入會員</a></em></div><div></div> 本帖最後由 tryit244178 於 2019-8-3 09:24 AM 編輯
請參考http://www.runoob.com/python/att-time-strftime.html
另一個問題也回在這(不然字數不夠),return z是把z的值傳回去的意思 tryit244178 發表於 2019-8-3 09:22 AM static/image/common/back.gif
請參考http://www.runoob.com/python/att-time-strftime.html
另一個問題也回在這(不然字數不夠),return z ...
tryit244178 前輩 您好:
感謝您提供那麼好的網站給我這個新手
非常感恩
頁:
[1]