各位大侠帮个忙,谁会编一个windows下的自动化执行脚本,要求可以自动访问一些特定的网页

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了各位大侠帮个忙,谁会编一个windows下的自动化执行脚本,要求可以自动访问一些特定的网页相关的知识,希望对你有一定的参考价值。

然后完毕后可以自动关闭,我想利用一个windows计划任务添加脚本,在特定的时间访问网页,各位大侠帮帮忙,谢谢了。

参考技术A 有很多方法啊。
比如借助selenium或者autoit之类的工具
参考技术B 有人回复你的话,也告我一声,我也想弄呢,你自己也可以到csdn上面找找看

输入某年某月,判断该月有多少天,并判断是不是为闰年,谁会编这个程序

闰年判断、某年某月有多少天
'这两个问题实际可以归结为一个问题,即求某年某月有多少天,调用下面仅 1 条语句的简单函数就可以实现:
'窗体添加控件 Command1、Command2 就可以查看 GetDays 的用法
Private Function GetDays(nYear As Long, nMonth As Long) As Long
GetDays = Day(DateSerial(nYear, nMonth + 1, 0))
End Function
'问题1,通过判断 2 月份是否有 29 天确定是否闰年
Private Sub Command1_Click()
Dim nYear As Long
nYear = Val(InputBox("请输入年分,例如:", "闰年判断", "2009"))
If nYear < 1 Then Exit Sub
If GetDays(nYear, 2) = 29 Then MsgBox nYear & " 闰年" Else MsgBox nYear & " 不闰年"
End Sub
'问题2,某年某月有多少天
Private Sub Command2_Click()
Dim nStr As String, nYear As Long, nMonth As Long, S As Long
nStr = InputBox("请输入年月,例如:", "某年某月有多少天", "2009-5")
If nStr = "" Then Exit Sub
S = InStr(nStr, "-")
nYear = Left(nStr, S - 1): nMonth = Val(Mid(nStr, S + 1))
S = GetDays(nYear, nMonth)
MsgBox nStr & ":有 " & S & " 天"
End Sub
Private Sub Form_Load()
Command1.Caption = "闰年": Command2.Caption = "天数"
End Sub
参考技术A 用什么语言? 参考技术B #include <stdio.h>
void main()

int year,leap;
scanf("%d",&year);
if(year%4==0)

if(year%100==0)

if(year%400==0)
leap=1;
else
leap=0;

else
leap=1;

else
leap=0;
if(leap)
printf("%d is",year);
else
printf("%d is not ",year);
printf("a leap year.\n");

以上是关于各位大侠帮个忙,谁会编一个windows下的自动化执行脚本,要求可以自动访问一些特定的网页的主要内容,如果未能解决你的问题,请参考以下文章

怎样在网页中调用.exe文件,请各位哥哥们帮个忙,谢谢

C++中怎么监控进程?本人C++小白,迫于特殊原因,求各位帮个忙!

多表操作问题,请大家帮个忙,谢谢

跪请ASP高手帮个忙解决一下数据库显示问题

请教个matlab程序问题,帮个忙。

64位windows下Apache服务无法开启,请帮个小忙。