debugtalk.py
870 字节
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
import random
import string
import time,datetime
from helpfunc.login_func import *
from helpfunc.db_pg_func import *
from helpfunc.db_func import *
from helpfunc.header_func import *
from random import randint
def sleep(n_secs):
time.sleep(n_secs)
def convert_to_string(value):
return str(value)
def get_nowtime():
return time.strftime("%Y%m%d%H%M%S",time.localtime(time.time()))
def get_today():
now_today = datetime.datetime.now()
str_time = now_today.strftime(" %Y-%m-%d ")
return str_time
def get_second():
curr_time = datetime.datetime.now()
return curr_time.second
def create_channel(num):
channel = []
for i in range(num+1):
channel.append(i)
return channel
def create_phone_number(num):
phone_number = []
for i in range(num):
phone_number.append('18%d%08d'%(i,i))
return phone_number