You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
命令行测试并输出结果:
$ python3 tests.py stat 2016-12-10
初始化成功
开始--1994
$ python3 tests.py stat 2016-12-09
初始化成功
开始--2016-12-09
$ python3 tests.py stat 2017-01-09
初始化成功
开始--2017-01-09
$ python3 tests.py stat 2016/12/10
初始化成功
开始--2016/12/10
$ python3 tests.py stat xxx
初始化成功
开始--xxx
$ python3 tests.py stat 中文
初始化成功
开始--中文
$ python3 tests.py stat 2017-12-10
初始化成功
开始--1995
$ python3 tests.py stat 2017-12-11
初始化成功
开始--1994
$ python3 tests.py stat 2017-12-12
初始化成功
开始--1993
$ python3 tests.py stat 2016-12-12
初始化成功
开始--1992
$ python3 tests.py stat 1995-10-10
初始化成功
开始--1975
$ python3 tests.py stat 1995-11-10
初始化成功
开始--1974
The text was updated successfully, but these errors were encountered:
shaozhipeng
changed the title
Receive date parameter conversion confusion
Receive date parameter conversion confusion[Receive Operation not String]
Jun 23, 2017
import fire
class Test:
def init(self):
print('初始化成功')
if name == 'main':
fire.Fire(Test)
命令行测试并输出结果:
$ python3 tests.py stat 2016-12-10
初始化成功
开始--1994
$ python3 tests.py stat 2016-12-09
初始化成功
开始--2016-12-09
$ python3 tests.py stat 2017-01-09
初始化成功
开始--2017-01-09
$ python3 tests.py stat 2016/12/10
初始化成功
开始--2016/12/10
$ python3 tests.py stat xxx
初始化成功
开始--xxx
$ python3 tests.py stat 中文
初始化成功
开始--中文
$ python3 tests.py stat 2017-12-10
初始化成功
开始--1995
$ python3 tests.py stat 2017-12-11
初始化成功
开始--1994
$ python3 tests.py stat 2017-12-12
初始化成功
开始--1993
$ python3 tests.py stat 2016-12-12
初始化成功
开始--1992
$ python3 tests.py stat 1995-10-10
初始化成功
开始--1975
$ python3 tests.py stat 1995-11-10
初始化成功
开始--1974
The text was updated successfully, but these errors were encountered: