Created
March 28, 2016 22:09
-
-
Save FGFW/36729cf79968bfcdc1c0 to your computer and use it in GitHub Desktop.
julia生成指定格式的字符串.jl
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| """ | |
| julia生成指定格式的字符串.jl | |
| http://bbs.bathome.net/thread-39829-1-1.html | |
| 2016年3月29日 05:06:07 codegay | |
| """ | |
| #生成aabbcc格式的字符串 | |
| ss="abcdefghijklmnopqrstuvwxyz0123456789" | |
| result=open("result.txt","w+") | |
| for a in ss | |
| for b in ss | |
| for c in ss | |
| s=string(a,a,b,c,b,c,"\r\n") | |
| write(result,s) | |
| #@show s | |
| end | |
| end | |
| end | |
| close(result) | |
| #[Finished in 4.2s] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment