Skip to content

Commit

Permalink
这个操作时间的包经常报错在pip时候报错很烦屏蔽掉 需要自己安装
Browse files Browse the repository at this point in the history
  • Loading branch information
duolabmeng6 committed Dec 11, 2023
1 parent 1589d28 commit 0aaa2eb
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
6 changes: 6 additions & 0 deletions pyefun/核心支持库/日期时间操作.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,16 +14,22 @@
import time
import pendulum
import copy

from .公用函数 import _动态导包
from .文本操作 import *


def 时间_设置语言包(名称="zh"):
pendulum = _动态导包("pendulum")

pendulum.set_locale(名称)


# 文档
# https://pendulum.eustace.io/docs/#instantiation
class 日期时间:
pendulum = _动态导包("pendulum")

t = pendulum.DateTime

def __init__(self, str="now"):
Expand Down
4 changes: 2 additions & 2 deletions requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,5 @@
# chardet
# python-dotenv
requests
pendulum
# ujson
#pendulum
# ujson

0 comments on commit 0aaa2eb

Please sign in to comment.