Sword问:
str := "abc" 怎么打印几个或多个"abc ",类似于EXCEL里的REPT函,不知AHK有没有?
回答:
rept(str,i)
{
ret:=""
loop,%i%
{
ret:=ret . str
}
return ret
}
;test
MsgBox % rept("a",3)
MsgBox % rept("abc",3)
Sword问:
str := "abc" 怎么打印几个或多个"abc ",类似于EXCEL里的REPT函,不知AHK有没有?
回答:
rept(str,i)
{
ret:=""
loop,%i%
{
ret:=ret . str
}
return ret
}
;test
MsgBox % rept("a",3)
MsgBox % rept("abc",3)