一、生成随机时间
import time
print(time.time()) # float
print(int(time.time()))
print('test_%s' % int(time.time()))
print('test_{}'.format(int(time.time())))
print(f'test_{int(time.time())}') # 推荐
print('test_'+str(int(time.time())))
Default test runner:
Run pytest for test.py
标签:int,print,接口,用例,Pytest,time,test From: https://www.cnblogs.com/jiangkeji/p/17004267.html