File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -96,8 +96,9 @@ def download_captcha():
9696 os .system ("open %s &" % image_name )
9797 else :
9898 Logging .info (u"我们无法探测你的作业系统,请自行打开验证码 %s 文件,并输入验证码。" % os .path .join (os .getcwd (), image_name ) )
99-
100- captcha_code = raw_input ( termcolor .colored ("请输入验证码: " , "cyan" ) )
99+
100+ sys .stdout .write (termcolor .colored (u"请输入验证码: " , "cyan" ) )
101+ captcha_code = raw_input ( )
101102 return captcha_code
102103
103104def search_xsrf ():
@@ -209,9 +210,10 @@ def login(account=None, password=None):
209210 if account == None :
210211 (account , password ) = read_account_from_config_file ()
211212 if account == None :
212- account = raw_input ("请输入登录帐号: " )
213- password = raw_input ("请输入登录密码: " )
214-
213+ sys .stdout .write (u"请输入登录账号: " )
214+ account = raw_input ()
215+ sys .stdout .write (u"请输入登录密码: " )
216+ password = raw_input ()
215217
216218 form_data = build_form (account , password )
217219 """
You can’t perform that action at this time.
0 commit comments