题目描述 Farmer John has M cows, conveniently labeled 1…M, who enjoy the occasional change of pace from eating grass. As a treat for the cows, Farmer John ...
分类:
其他好文 时间:
2020-02-02 11:58:53
阅读次数:
98
1.exit 退出命令行程序 2.ls /boot ls看当前目录下的文件(文件夹为蓝色) 4.ls -l /boot 5.whoani 6.who 7.date 8.cal 9.clear 清屏 =ctrl l 10.useradd userdel 11.passwd 12.su 切换用户。从ro ...
分类:
其他好文 时间:
2020-02-02 11:34:54
阅读次数:
112
面试题58:翻转字符串 问题描述 问题(1) 翻转单词顺序 输入一个英文句子,翻转句子中单词的顺序,但单词内字符的顺序不变。为简单起见,标点符号和普通字母一样处理。 例如输入字符串"I am a student. ",则输出"student. a am I"。 问题(2)左旋转字符串 字符串的左旋转 ...
分类:
其他好文 时间:
2020-02-01 19:15:35
阅读次数:
112
显示目前登录系统的用户信息补充说明who命令 是显示目前登录系统的用户信息。执行who命令可得知目前有那些用户登入系统,单独执行who命令会列出登入帐号,使用的终端机,登入时间以及从何处登入或正在使用哪个X显示器。语法1who(选项)(参数)选项12345678-H或--heading:显示各栏位的... ...
分类:
其他好文 时间:
2020-02-01 12:31:46
阅读次数:
67
Perl 中s/// 和 tr/// 的差别 说真的,要学好 perl 还真的不简单,因为 perl 的程序代码比C来得精简一半1,靠得就是在撰写时的大脑运作。程设师得花更多时间写出精简的 code,同时也要将「语意上的错误」减少到最低,这就是要靠经验的累积。废话不多说,先说s/// 置换的功能,s ...
分类:
编程语言 时间:
2020-01-30 22:58:20
阅读次数:
89
In the "100 game," two players take turns adding, to a running total, any integer from 1..10. The player who first causes the running total to reach o ...
分类:
编程语言 时间:
2020-01-29 10:50:52
阅读次数:
93
Hey Guys I am back to my path of training, I am currently studying at UNSW and i am preparing to do ACM-ICPC in my uni life. I will be recording my tr ...
分类:
其他好文 时间:
2020-01-28 21:06:35
阅读次数:
69
如果在iframe中引用了其他来源的页面,当前网站的JS不能控制iframe中的元素。 <iframe id='myIFrame' src = 'x1.html' onload="fun1()"></iframe> <p id='2'>I am 2.html.</p> <p id='p'>hello ...
分类:
Web程序 时间:
2020-01-27 15:37:50
阅读次数:
447
``` '; require('reusable.php'); echo 'The script will end now.'; /* there are three situations here 1. if the reusable.php are those codes, which incl... ...
分类:
Web程序 时间:
2020-01-27 00:16:25
阅读次数:
93
1.adb shell am start -S -W -n appname 2.adb shell am force-stop packagename 3.adb shell input keyevent 4.adb shell dumpsys cpuinfo | grep packagename ...
分类:
移动开发 时间:
2020-01-23 15:34:41
阅读次数:
97