摘要:
// 方便自己看,代码非常不规范,请勿参考. http://www.runoob.com/java/java-string.html 阅读全文
摘要:
编写一个函数来查找字符串数组中的最长公共前缀。 如果不存在公共前缀,返回空字符串 ""。 知识点1: 方法:String.indexOf(String) while (strs[i]. indexOf(prefix) != 0) {...} 这个循环用来比较两个字符串,直到找到完全相同的前缀(因为p 阅读全文
摘要:
Write a program to read through the mbox-short.txt and figure out who has sent the greatest number of mail messages. The program looks for 'From ' lin 阅读全文
摘要:
题目要求: Write a program that repeatedly prompts a user for integer numbers until the user enters 'done'. Once 'done' is entered, print out the largest a 阅读全文
摘要:
cd Documents cd PythonCode python3 hello.py Text Editor: Atom Atom 可以用来写 python 脚本 (文件后缀名 .py)。 但是不用它也可以编写python程序。, 然后用Terminal run the code. 阅读全文