Skip to content

Commit 7e091b7

Browse files
committed
完善登陆知乎代码
1 parent c388bdf commit 7e091b7

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Main.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,9 +48,10 @@ public static void main(String[] args) {
4848
out.write(bytes,0,len);
4949
}
5050
out.close();
51+
Runtime.getRuntime().exec("eog /tmp/zhihu.gif");//ubuntu下看图片的命令是eog
5152

5253
//请用户输入验证码
53-
System.out.println("请输入验证码:");
54+
System.out.print("请输入验证码:");
5455
Scanner scanner = new Scanner(System.in);
5556
String captcha = scanner.next();
5657
valuePairs.add(new BasicNameValuePair("captcha", captcha));

0 commit comments

Comments
 (0)