举报
#include <file.au3> #include <array.au3> ;$fileText = fileread("") $fileText = "世界上最完美的乐观心态"&@LF& _ "世界上最优良的心态——乐观开朗"&@LF& _ "交往不悲观的方法" $array = StringSplit($filetext , @lf) For $i = 1 To $array[0] $array[$i - 1] = $i & "、" &$array[$i] Next ReDim $array[$i - 1] $newText = _ArrayToString($array, @lf) MsgBox(0,0,$newText) ;$file = fileopen("",25) ;filewrite($file, $newtext) ;fileclose($file)
本版积分规则 发表回复 回帖后跳转到最后一页
|手机版|小黑屋|AUTOIT CN ( 鲁ICP备19019924号-1 )谷歌 百度
GMT+8, 2025-5-6 15:24 , Processed in 0.207130 second(s), 23 queries .
Powered by Discuz! X3.5 Licensed
© 2001-2025 Discuz! Team.