题目:创建一个链表。 程序分析:无。 实例: 1 #include<stdio.h> 2 #include<stdlib.h> 3 #include<malloc.h> 4 typedef struct LNode{ 5 int data; 6 struct LNode *next; 7 }LNod ...
分类:
其他好文 时间:
2020-07-14 13:25:56
阅读次数:
58
题目:连接两个链表。 程序分析:无。 实例: 1 #include <stdlib.h> 2 #include <stdio.h> 3 struct list 4 { 5 int data; 6 struct list *next; 7 }; 8 typedef struct list node; ...
分类:
其他好文 时间:
2020-07-14 13:05:22
阅读次数:
57
题目:反向输出一个链表。 程序分析:无。 实例: 1 #include<stdio.h> 2 #include<stdlib.h> 3 #include<malloc.h> 4 typedef struct LNode{ 5 int data; 6 struct LNode *next; 7 }LN ...
分类:
其他好文 时间:
2020-07-14 13:05:03
阅读次数:
56
动作 printf printf 可以实现格式化输出格式: printf “FORMAT”, item1, item2, ... 说明: 必须指定FORMAT 不会自动换行,需要显式给出换行控制符 \n FORMAT中需要分别为后面每个item指定格式符 格式符:与item一一对应 %c:显示字符的 ...
分类:
其他好文 时间:
2020-07-14 09:20:53
阅读次数:
73
import os for i in os.scandir(r'E:\pandas练习'): print('文件名:',i.name) print('文件的绝对路径:',i.path) print('是否是文件夹:',i.is_dir()) print('是否是文件:',i.is_file()) p ...
分类:
其他好文 时间:
2020-07-13 18:03:46
阅读次数:
53
一 代码及执行结果 ex30.py 1 people = 14 2 cars = 15 3 trucks = 10 4 5 if cars > people: 6 print("We should take the cars.") 7 elif cars < people: 8 print("We ...
分类:
其他好文 时间:
2020-07-13 13:46:48
阅读次数:
67
第2章 变量和简单数据类型 2-1 简单消息: 将一条消息存储到变量中,再将其打印出来。 2-2 多条简单消息: 将一条消息存储到变量中,将其打印出来;再将变量的值修改为一条新消息,并将其打印出来。 2-3 个性化消息: 将用户的姓名存到一个变量中,并向该用户显示一条消息。显示的消息应非常简单,如“ ...
分类:
编程语言 时间:
2020-07-13 13:18:51
阅读次数:
199
常用PHP内部函数练习 1、字符串函数 (1)strlen($str);//返回字符串长度 mb_strlen($str) 可以返回中文字符长度; (2)strtolower($str);//字母转小写 (3)strtoupper($str);//字母转大写 (4)ucwords($str);//每 ...
分类:
Web程序 时间:
2020-07-13 09:35:21
阅读次数:
81
# -*- codeing = utf-8 -*- # @Time : 2020/7/9 16:43 # @Author: 小菜菜最菜 # @File : douban.py # @Software : PyCharm from bs4 import BeautifulSoup# 网页解析,获取数据 ...
分类:
其他好文 时间:
2020-07-12 22:30:01
阅读次数:
102
学习地址:https://www.bilibili.com/video/BV1mf4y1S72o?p=18 实例练习一(创建一个柱的族) using System; using System.Collections.Generic; using System.Linq; using System.T ...
分类:
其他好文 时间:
2020-07-12 16:24:00
阅读次数:
82