本網站在啟用 JavaScript 的情況下可以運作的更好。
首頁
探索
說明
登入
etu
/
worst_captcha
關注
1
加上星號
0
Fork
0
程式碼
問題
0
合併請求
0
版本發佈
0
Wiki
動態
瀏覽代碼
Ignore first file (.keep)
master
Elis Axelsson
4 年前
父節點
0fa3a2c06c
當前提交
d6a84520f4
共有
1 個檔案被更改
,包括
1 行新增
和
1 行删除
分割檢視
Diff 選項
顯示統計資料
下載 Patch 檔
下載 Diff 檔
+1
-1
src/WorstCaptcha/GetWord.go
+ 1
- 1
src/WorstCaptcha/GetWord.go
查看文件
@ -1,7 +1,6 @@
package
WorstCaptcha
import
(
"fmt"
"io/ioutil"
"os"
"math/rand"
@ -12,6 +11,7 @@ func GetRandomWord() string {
dir
,
_
:=
os
.
Getwd
(
)
files
,
_
:=
ioutil
.
ReadDir
(
dir
+
"/images/"
)
files
=
files
[
1
:
]
file
:=
files
[
rand
.
Intn
(
len
(
files
)
)
]
.
Name
(
)
撰寫
預覽
載入中…
取消
儲存