12306/12306login/haha.py

49 lines
1.2 KiB
Python
Raw Blame History

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

# # -*- coding=utf-8 -*-
# import json
# import sys
# import urllib
# import urllib2
#
# submitParams = [
# ('secretStr', 1), # 预订提交令牌
# ('train_date', 1), # 车票日期
# ('back_train_date', 1), # 返程日期,没有则为当前日期
# ('tour_flag', 1), # 旅行类型单程dc,与返程fc
# ('purpose_codes', 1), # 标记是否为成人(ADULT)与学生(0X00)
# ('query_from_station_name', 1), # 发站名称,汉字
# ('query_to_station_name', 1) # 到站名称,汉字
# ]
#
# print urllib.unquote()
#
#
#
#
# class a:
# def __init__(self, factory):
# pass
# def b(self):
# pass
#
# class c:
# def __init__(self):
# pass
# def d(self):
# # return a().b()
import time
#
# import datetime
#
# str = "2017052100:00:00"
# m_time = time.mktime(time.strptime(str, "%Y%m%d%H:%M:%S"))
# a_time = time.localtime(m_time)
# print time.strftime("%a %b %d %Y %H:%M:%S", a_time)
# # time_b = time.asctime("%a %b %d %H:%M:%S %Y", str)
# # print time_b
import random
# 1495457315834
# 428889054675
# 318250603668
# print random.randint(1, 9)
a = "密码输入错误"
print a.find("121")