Skip to content

Instantly share code, notes, and snippets.

@FGFW
Created March 28, 2016 22:09
Show Gist options
  • Select an option

  • Save FGFW/36729cf79968bfcdc1c0 to your computer and use it in GitHub Desktop.

Select an option

Save FGFW/36729cf79968bfcdc1c0 to your computer and use it in GitHub Desktop.
julia生成指定格式的字符串.jl
"""
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