Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

请问大神这里为什么要减1呢?感觉这里写的太繁琐了 #36

Open
Lcoderfit opened this issue Dec 10, 2019 · 1 comment
Open

Comments

@Lcoderfit
Copy link

runes = append(runes, alpha[num-1])

@Lcoderfit Lcoderfit changed the title 请问大神这里为什么要减1呢?感觉这里写的太繁琐了, 请问大神这里为什么要减1呢?感觉这里写的太繁琐了 Dec 10, 2019
@Lcoderfit
Copy link
Author

for num > 0 {
	runes = append(runes, alpha[num%62])
	num = num / 62
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant