|
lxmxn
版主
       
积分 11386
发帖 4938
注册 2006-7-23
状态 离线
|
|
2007-6-17 13:30 |
|
|
bd123456789
中级用户
  
积分 360
发帖 216
注册 2007-5-29
状态 离线
|
『第 47 楼』:
使用 LLM 解释/回答一下
呵呵,实用
非常感谢!
Hehe, practical
Thank you very much!
|
|
2007-6-24 07:08 |
|
|
vk
中级用户
  
积分 218
发帖 86
注册 2006-8-10
状态 离线
|
『第 48 楼』:
使用 LLM 解释/回答一下
这东西灵的 已收藏 多谢LZ
This thing is great. Already bookmarked. Thanks, LZ.
|

 |
|
2007-6-24 20:03 |
|
|
duanml
中级用户
  
积分 231
发帖 112
注册 2007-6-19
状态 离线
|
|
2007-6-24 23:29 |
|
|
redrains
初级用户
 
积分 49
发帖 26
注册 2007-9-11
状态 离线
|
|
2007-9-28 11:54 |
|
|
ylgzs
新手上路

积分 17
发帖 10
注册 2007-1-22
状态 离线
|
『第 51 楼』:
使用 LLM 解释/回答一下
楼主真是一位好的引导老师啊,多写点啊。。。(别拍偶。。。。呵呵)
The LZ is really a good guiding teacher. Write more... (Don't beat me... Hehe)
|
|
2007-10-9 02:43 |
|
|
james168
初级用户
 
积分 81
发帖 35
注册 2006-10-16
状态 离线
|
|
2007-10-9 10:19 |
|
|
06403213
初级用户
 
积分 42
发帖 21
注册 2007-10-3
状态 离线
|
『第 53 楼』:
使用 LLM 解释/回答一下
还可以这样传递啊!!!
It can also be passed like this!!!
|
|
2007-10-20 02:05 |
|
|
fengjian
新手上路

积分 16
发帖 8
注册 2007-10-31
状态 离线
|
『第 54 楼』:
使用 LLM 解释/回答一下
请容许我发表一个很低级得问题
版主 看了你得很多帖子 心里只有2个字“佩服”
我是刚刚才接触 这类东西 有很多不明白 就比你刚刚发的这个 我演示过了
但是看不明白什么意思 希望你们不要见笑
我真的希望在今后的学习中能得到大家的帮助
谢谢
Please allow me to raise a very basic question.
Moderator, after reading many of your posts, I can only say two words: "Admiration".
I have just started to get in touch with this kind of thing and there are many things I don't understand. For example, I just demonstrated the one you posted earlier, but I can't understand what it means. I hope you don't laugh at me.
I really hope to get everyone's help in future studies.
Thank you
|
|
2007-10-31 18:06 |
|
|
lxmxn
版主
       
积分 11386
发帖 4938
注册 2006-7-23
状态 离线
|
『第 55 楼』:
使用 LLM 解释/回答一下
Originally posted by fengjian at 2007-10-31 18:06:
请容许我发表一个很低级得问题
版主 看了你得很多帖子 心里只有2个字“佩服”
我是刚刚才接触 这类东西 有很多不明白 就比你刚刚发的这个 我演 ...
其实这个变量截取就相当于其它语言里面的substr函数一样,可以截取一个字符串中指定位置的子串。
比如一个字符串的前两位是你想要的,那么就可以用变量截取来获得你想要的字符串。
比如
set string=cn.sina.com
set new=%string:~0,2%
那么%new%的值就是%string%的前两个字符了,即“cn”。
Originally posted by fengjian at 2007-10-31 18:06:
Please allow me to post a very basic question
Moderator, after reading many of your posts, I just have two words in my heart: "Admiration"
I have just started to get in touch with this kind of thing, and there are many things I don't understand. For example, the one you just posted, I perform...
In fact, this variable interception is equivalent to the substr function in other languages, which can intercept a substring at a specified position in a string.
For example, if the first two characters of a string are what you want, then you can use variable interception to get the string you want.
For example
set string=cn.sina.com
set new=%string:~0,2%
Then the value of %new% is the first two characters of %string%, that is, "cn".
|
|
2007-10-31 18:26 |
|
|
z310394543
初级用户
 
积分 48
发帖 23
注册 2007-10-24
状态 离线
|
『第 56 楼』:
使用 LLM 解释/回答一下
for /l %%a in (1,3,15) do (
for /l %%b in (1,4,15) do (
call :printf %%a %%b
)
)
能不能解释下(1,3,15) 和(1,4,15) 是控制什么的么?
In a `for /l` loop in Windows batch scripting, the syntax `(start, step, end)` is used. For `(1,3,15)`: the `start` is 1, the `step` is 3, and the `end` is 15. It will iterate starting at 1, then add 3 each time, and stop when it reaches or exceeds 15. So it will generate values like 1, 4, 7, 10, 13, 16 (but 16 is over 15 so stops at 13). For `(1,4,15)`: the `start` is 1, the `step` is 4, and the `end` is 15. It will iterate starting at 1, then add 4 each time, and stop when it reaches or exceeds 15. So it will generate values like 1, 5, 9, 13, 17 (but 17 is over 15 so stops at 13). The first loop variable `%%a` takes on these values generated by the first `for /l` loop, and the second loop variable `%%b` takes on the values generated by the second `for /l` loop, and then each time it calls the `:printf` subroutine with `%%a` and `%%b` as arguments.
|
|
2007-11-4 00:46 |
|
|
z310394543
初级用户
 
积分 48
发帖 23
注册 2007-10-24
状态 离线
|
『第 57 楼』:
使用 LLM 解释/回答一下
接上面
貌似
set var=0123456789ABCDEF
这个变量下面的FOR没用到他的值?
不懂哎 ~~
Continuing from the previous part, it seems that the FOR below doesn't use the value of this variable? I don't understand it.
|
|
2007-11-4 00:49 |
|
|
lxmxn
版主
       
积分 11386
发帖 4938
注册 2006-7-23
状态 离线
|
『第 58 楼』:
使用 LLM 解释/回答一下
RE z310394543:
1、(1,3,15) 是控制for循环中的变量 %%i 的,表示一个等差数列,即从1开始,以3为步长增长的数列,但数最大为15。
2、var 这个变量在 call 子过程中用到了,可以搜索一下论坛关于 call 用法的例子。
RE z310394543:
1、(1,3,15) is used to control the variable %%i in the for loop, representing an arithmetic sequence, that is, a sequence starting from 1, increasing by a step of 3, but the maximum number is 15.
2、The variable var is used in the call sub - procedure, you can search for examples of call usage in the forum.
|
|
2007-11-4 09:59 |
|
|
z310394543
初级用户
 
积分 48
发帖 23
注册 2007-10-24
状态 离线
|
『第 59 楼』:
使用 LLM 解释/回答一下
斑竹的效率真高
The efficiency of the moderator is really high
|
|
2007-11-4 20:58 |
|
|
jk328019419
新手上路

积分 6
发帖 3
注册 2007-10-23
状态 离线
|
『第 60 楼』:
使用 LLM 解释/回答一下
根本没讲用法,会的还是会,不会的还是不会
It simply didn't explain the usage. Those who know still know, and those who don't still don't.
|
|
2007-11-9 20:10 |
|