Skip to content

Commit

Permalink
Add files via upload
Browse files Browse the repository at this point in the history
  • Loading branch information
愿乘风归去 authored May 1, 2020
1 parent 6bf5142 commit 3c146c8
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion one-hop.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,9 @@ def get_sn():
opt = input('你的选择(小写): ')
if opt == 'a':
while len(sn) < 16:
sn = sn + 'a'
sn = sn + 'A'
if len(sn) > 16:
sn = sn[:16]
elif opt == 'b':
sn = sn
elif opt == 'c':
Expand All @@ -42,6 +44,8 @@ def get_sn():
print('将在末尾加a补齐16位SN')
while len(sn) < 16:
sn = sn + 'A'
if len(sn) > 16:
sn = sn[:16]
return sn


Expand Down

0 comments on commit 3c146c8

Please sign in to comment.