摘要: 参考代码: include include include int main() { char week[7][5] = { "MON","TUE","WED","THU","FRI","SAT","SUN" }; char str1[70], str2[70], str3[70], str4[70 阅读全文
posted @ 2019-07-20 23:04 睿晞 阅读(218) 评论(0) 推荐(0) 编辑
摘要: 参考代码: 阅读全文
posted @ 2019-07-20 21:23 睿晞 阅读(227) 评论(0) 推荐(0) 编辑
摘要: 这一题遇见的错误有很多,学会了一些知识点 使用了strcpy函数,前是需要复制的数组,后面是被复制的数组 关于字符,如果是非数字可以使用 ='0'来判断 参考代码: include include include int P[18] = { 7,9,10,5,8,4,2,1,6,3,7,9,10,5 阅读全文
posted @ 2019-07-17 23:30 睿晞 阅读(220) 评论(0) 推荐(0) 编辑
摘要: 参考代码: include include include int main() { char str[1010]; int i = 0; fgets(str, 1010, stdin); while (str[i] != '\n') i++; str[i] = '\0'; int len = st 阅读全文
posted @ 2019-07-17 19:25 睿晞 阅读(146) 评论(0) 推荐(0) 编辑
摘要: 参考代码: include int main() { int n;//接收输入的数字 int a = 0, b = 0, c = 0;//分别记录百位十位个位上的数 scanf("%d", &n); a = n / 100; b = (n / 10) % 10; c = n % 10; for (i 阅读全文
posted @ 2019-07-14 23:09 睿晞 阅读(163) 评论(0) 推荐(0) 编辑
摘要: 这里有一点需要注意的就是,PAT里面是禁用gets函数的,所以要换成一个替代函数 那就是下面这个: 这个是参考代码: 阅读全文
posted @ 2019-07-12 23:56 睿晞 阅读(221) 评论(0) 推荐(0) 编辑
摘要: 2.设计内容 把下面的几个网址的内容看懂,关于Linux的通信机制就会有个基本的了解了,后面的这几个代码也应该可以看得懂了。 管道通信:https://blog.csdn.net/ljianhui/article/details/10168031 消息队列通信:https://blog.csdn.n 阅读全文
posted @ 2019-05-27 20:49 睿晞 阅读(3963) 评论(1) 推荐(1) 编辑
摘要: 出现下图错误 原因就是没有临时表空间,所以要建立临时表空间,下面的语句,记得把地址换成你自己想放的地方。 最后开始导出 阅读全文
posted @ 2019-05-10 20:51 睿晞 阅读(1737) 评论(0) 推荐(0) 编辑
摘要: 什么是可迭代的对象(Iterable,即可以用for循环的对象)和迭代器(Iterator) 1. Iterable: 一类是:list、tuple、dict、set、str 二类是:generator(都是Iterator对象),包含生成器和带yield的generator function 生成 阅读全文
posted @ 2019-05-07 12:06 睿晞 阅读(16545) 评论(0) 推荐(5) 编辑
摘要: ! done python基础_格式化输出(%用法和format用法) 目录 %用法 format用法 %用法 1、整数的输出 %o —— oct 八进制%d —— dec 十进制%x —— hex 十六进制 1 >>> print('%o' % 20) 2 24 3 >& 阅读全文
posted @ 2019-05-05 22:15 睿晞 阅读(912) 评论(0) 推荐(0) 编辑