随笔分类 -  编程语言

摘要:删除桌面文件 文件名称为0.txt到5.txt 路径问题 桌面\ & 1.txt = 桌面\1.txt才是在桌面删除文件1.txt Administrator\桌面 & 1.txt = Administrator\桌面1.txt,在Administrator文件夹下删除的文件名是桌面1.txt Di 阅读全文
posted @ 2021-07-16 16:55 MrFlySand-飞沙 阅读(1424) 评论(0) 推荐(0)
摘要:在桌面创建文件 文件名称为0.txt到5.txt 桌面\ & 1.txt = 桌面\1.txt才是在桌面删除文件1.txt Administrator\桌面 & 1.txt = Administrator\桌面1.txt,在Administrator文件夹下删除的文件名是桌面1.txt dim fi 阅读全文
posted @ 2021-07-16 16:29 MrFlySand-飞沙 阅读(915) 评论(0) 推荐(0)
摘要:JS生成二维码 效果图 扫描二维码可访问指定链接或当前网站链接,内容可以自己更改 “复制链接”点击按钮复制当前网站链接 如何获取当前网站链接 源码 textarea{ opacity: 0; /*display: none;*/ z-index: -999; } button{ margin-lef 阅读全文
posted @ 2021-07-15 11:33 MrFlySand-飞沙 阅读(2315) 评论(0) 推荐(0)
摘要:将字母转为ascii码的方法: var MrFlySand = "A"; MrFlySand.charCodeAt();// 65 var FlySand= 'a'; FlySand.charCodeAt();// 97 将ascii码转为对应字母的方法: var MrFlySand = 97; S 阅读全文
posted @ 2021-06-08 11:09 MrFlySand-飞沙 阅读(408) 评论(0) 推荐(0)
该文被密码保护。
posted @ 2021-01-03 20:28 MrFlySand-飞沙 阅读(25) 评论(0) 推荐(0)
摘要:方法一 通过遍历如果能被7或17整除,并且是偶数就输出这个数,这样要遍历range次 int methodOne(int range){ int i,m=0,s=0; for(i=1;i<=range;i++){ if((i%7==0 || i%17==0) && i%2==0){ s=s+i; } 阅读全文
posted @ 2020-12-17 21:57 MrFlySand-飞沙 阅读(763) 评论(0) 推荐(0)
摘要:Instructions Output Your task is to construct a building which will be a pile of n cubes. The cube at the bottom will have a volume of n^3, the cube a 阅读全文
posted @ 2020-12-16 17:17 MrFlySand-飞沙 阅读(129) 评论(0) 推荐(0)
摘要:<body>…</body> <a>…</a> <head>…</head> <title>…</title> html常用标签: < html> </html>创建一个HTML文档 < head> </head>设置文档标题和其它在网页中不显示的信息 <title> </title>设置文档的标题 阅读全文
posted @ 2020-12-04 22:10 MrFlySand-飞沙 阅读(70) 评论(0) 推荐(0)
该文被密码保护。
posted @ 2020-10-28 17:47 MrFlySand-飞沙 阅读(1917) 评论(0) 推荐(0)
摘要:QQ刷屏 Set WshShell= WScript.CreateObject("WScript.Shell") for i=1 to 10 '最多发送10次 WScript.Sleep 300 '300ms发送一次,1000就是1s WshShell.SendKeys "^v" & "-" & i 阅读全文
posted @ 2020-09-30 21:39 MrFlySand-飞沙 阅读(739) 评论(0) 推荐(0)
摘要:2.1第一个爬虫 python有两种导入模块的方法,分别如下 import urllib.request在程序中就要使用urllib.request.urlopen(url)来调用模块中的函数 from urllib import request在程序中使用request.urlopen(url)( 阅读全文
posted @ 2020-09-30 20:41 MrFlySand-飞沙 阅读(1858) 评论(0) 推荐(0)
摘要:var x=prompt("Please enter x")*1; var y=prompt("Please enter y")*1; var a=x; var b=y; x=x<y?x:y; y=x>y?x:y; var t; while(x!=0){ t=y%x; y=x; x=t; } 最小公 阅读全文
posted @ 2020-09-16 09:54 MrFlySand-飞沙 阅读(148) 评论(0) 推荐(0)
摘要:王阳明说过“知行合一”。相信大家都听老师讲过指针,讲的时候听懂了,自己写代码就不会了。所以整理了一些题目供大家练习! 一、指针指向地址和赋值 &:取址操作符 *:取值操作符 p1指向变量a的地址,所以a前面要加地址符& p2指向变量b的地址 *p1指向变量a的地址中的元素(值) *p2指向变量b的地 阅读全文
posted @ 2020-08-31 13:49 MrFlySand-飞沙 阅读(655) 评论(0) 推荐(0)
摘要:#include <stdio.h> //数据交换 int swap(int *x,int *y){ int temp; temp=*x; *x=*y; *y=temp; } int main(){ int a = 10, b = 20; swap(&a,&b); printf("%d %d",a 阅读全文
posted @ 2020-08-20 19:35 MrFlySand-飞沙 阅读(151) 评论(0) 推荐(0)
摘要:查看上图效果源码 <!--上图源码--> <table border="3" cellspacing="0" cellpadding="0"> <tr><!--表头--> <th>时间</th> <th>星期一</th><!--文字加粗并居中--> <th>星期二</th> </tr> <tr><! 阅读全文
posted @ 2020-08-17 11:05 MrFlySand-飞沙 阅读(189) 评论(0) 推荐(0)
摘要:说明:[]在实际使用时去掉[] 01 设置 注意:命令行区分大小写 git config --list查看设置 git config --global user.name 'MrFlySand'设置用户名 git config --global user.email '***@163.com'设置用 阅读全文
posted @ 2020-08-09 10:44 MrFlySand-飞沙 阅读(556) 评论(0) 推荐(0)