12306/12306login/haha.py

32 lines
763 B
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()