上一页 1 ··· 41 42 43 44 45 46 47 48 49 ··· 56 下一页
摘要: #include <stdio.h> #include <ctype.h> void upper(char *x) { while (*x != '\0') { *x = toupper(*x); x++; } } int main() { char s[] = "De poca estabilid 阅读全文
posted @ 2020-06-20 08:10 profesor 阅读(133) 评论(0) 推荐(0) 编辑
摘要: students = [("jerry", 25), ("elaine", 24), ("John", 34), ("kramer", 34)] #把年龄在30以上的学生信息提取出来 print([item for item in students if item[1] > 30]) #把年龄在30 阅读全文
posted @ 2020-06-18 20:49 profesor 阅读(144) 评论(0) 推荐(0) 编辑
摘要: 用strchr搜索字符,并把搜索到的字符串保存到新字符串中 #include <stdio.h> #include <string.h> #include <stdlib.h> //用于malloc(), free()函数 int main() { char s[] = "Bienvenidos a 阅读全文
posted @ 2020-06-18 19:36 profesor 阅读(203) 评论(0) 推荐(0) 编辑
摘要: 找出字符串Bienvenidos a todos中所有的字符e #include <stdio.h> #include <string.h> int main() { char s[] = "Bienvenidos a todos"; char * p = strchr(s, 'e'); //通过这 阅读全文
posted @ 2020-06-18 19:26 profesor 阅读(202) 评论(0) 推荐(0) 编辑
摘要: DNS servers in China https://public-dns.info/nameserver/cn.html How to easily set up a static ip address in Ubuntu using the GUI(12.04) https://www.yo 阅读全文
posted @ 2020-06-17 12:00 profesor 阅读(163) 评论(0) 推荐(0) 编辑
摘要: 方法一: String[] words = new String[] {"precarious", "exiguous", "prodigious"}; //注意new String[] 这里的[]必须是空的 方法二: String[] words = {"precarious", "exiguou 阅读全文
posted @ 2020-06-14 22:37 profesor 阅读(451) 评论(0) 推荐(0) 编辑
摘要: 整齐的二维数组 import java.util.Random; public class a2d { public static void main(String[] args) { var rand = new Random(); int[][] scores = new int[3][5]; 阅读全文
posted @ 2020-06-14 22:04 profesor 阅读(1168) 评论(0) 推荐(0) 编辑
摘要: //统计[1,100]之间的素数个数,并求和 #include <stdio.h> #include <math.h> #include <stdbool.h> bool isPrime(int ); int main() { int num; // scanf("%d", &num); int s 阅读全文
posted @ 2020-06-14 19:23 profesor 阅读(802) 评论(0) 推荐(0) 编辑
摘要: //把02.txt中的内容写入到05.txt中 import java.io.FileReader; import java.io.FileWriter; import java.io.IOException; public class Backup { public static void mai 阅读全文
posted @ 2020-06-14 18:31 profesor 阅读(125) 评论(0) 推荐(0) 编辑
摘要: public class ArrayDemo { public static void main(String[] args) { int[] a = {1, -9, 34, 67, 0, 12 ,34 ,5, 6, 11}; System.out.println(Sum(a)); } static 阅读全文
posted @ 2020-06-14 17:52 profesor 阅读(517) 评论(0) 推荐(0) 编辑
上一页 1 ··· 41 42 43 44 45 46 47 48 49 ··· 56 下一页