摘要: import sys # print(help(sys.stdout)) sys.stdout.write("the quick brown fox jumps over the lazy dog.") #返回值是字符串长度 sys.stderr.write("to err is humane, t 阅读全文
posted @ 2020-06-26 20:32 profesor 阅读(788) 评论(0) 推荐(0) 编辑
摘要: #include <stdio.h> int main() { char *temporadas[] = {"primavera", "verano", "otoño", "invierno"}; for (int i = 0; i < 4; ++i) { // printf("%c\n", *(( 阅读全文
posted @ 2020-06-26 20:16 profesor 阅读(143) 评论(0) 推荐(0) 编辑
摘要: 获取时间 #include <stdio.h> #include <time.h> int main() { printf("%ld\n", time(NULL)); return 0; } 对应python中 import time print(time.time()) 生成随机骰子数: #inc 阅读全文
posted @ 2020-06-26 19:28 profesor 阅读(188) 评论(0) 推荐(0) 编辑
摘要: 例://找出字符串中所有的is //找出字符串中所有的is #include <stdio.h> #include <string.h> int main(int argc, char const *argv[]) { char s[200] = "Work is like a capricious 阅读全文
posted @ 2020-06-26 18:45 profesor 阅读(1400) 评论(0) 推荐(0) 编辑