- 博客(4)
- 收藏
- 关注
原创 game2048
Game 2048文章目录Game 2048Environment PreparationMain task`emptySpaceExists(Board b)`Related classSolutionReview`maxTileExists(Board b)`Related classSolutionReview`atLeastOneMoveExists(Board b)`Related classSolutionReview`tilt(Side side)`Related classSolution
2022-03-27 17:28:26 2285 1
原创 python函数
python函数1.函数定义2.函数参数形参、实参def calc(x, y): res = x ** y return resa = input()b = input()c = calc(int(a),int(b))print(c)其中 x,y为形参;而a,b为实参在这里,a和b只是把他们各自的值给传递给x和y;仅为值传递默认参数def stu_register(name,age,course,country="CN")**注意:**默认参数
2021-09-07 21:51:36 59
原创 数据结构复习(二)----链表
数据结构复习(二)—链表链表基本分类1.单链表2.双链表3.循环链表链表定义和图示化表达简言之,就是data加next指针打包在一起;链表的基本操作:1.链表的定义#define Elemtype inttypedef struct LNode{ Elemtype data; LNode* next;}LinkList;2.链表的基本操作1.头插法建表void CreateListHead(LinkList*&L, int a[],int n){ L=(Lin
2021-09-03 20:21:46 140
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人