summarylogtreecommitdiffstats
path: root/cscore
diff options
context:
space:
mode:
authorLackOfDream2016-08-12 14:33:36 +0900
committerLackOfDream2016-08-12 14:33:36 +0900
commit7ef7281e6c3a56516892d754abd4fcb91c485602 (patch)
treec254e901de1121c5e2323ce3dd60e21a5ec898e1 /cscore
parent30c8ad02f553e0f3367a3eee10d38b6dcae8ab94 (diff)
downloadaur-7ef7281e6c3a56516892d754abd4fcb91c485602.tar.gz
add length check for student_id
Diffstat (limited to 'cscore')
-rwxr-xr-xcscore2
1 files changed, 1 insertions, 1 deletions
diff --git a/cscore b/cscore
index e6b9c188a194..f1a1ef693cec 100755
--- a/cscore
+++ b/cscore
@@ -109,7 +109,7 @@ def print_usage():
if __name__ == '__main__':
stu_id = None
pwd = None
- if len(sys.argv) == 1:
+ if len(sys.argv) == 1 and len(sys.argv[1]) == 9:
stu_id = input('学号:')
pwd = getpass.getpass('密码:')
elif len(sys.argv) == 2: