- 博客(7)
- 收藏
- 关注
原创 机试练习——string
C++ string笔记 最近记性不太好,很多基础的东西也需要勤学勤练,一步一步慢慢来吧~ 权威及官方用法请参考cplusplus.com 注: 本人小白主要涉及C++98 比较 char char是单个字符型,声明用单引号 ’ ’ eg: char app = ‘a’ string是一串字符用双引号 “ ” eg: string str = “hhhhh” C字符数组 char ch[ ]={‘C’, ‘+’, ‘+’}; //末尾无NULL char ch[ ]={‘C’, ‘+’, ‘+’
2021-05-06 21:14:50
152
原创 Leetcode刷题-763-partition labels-贪心
partition labels 题目:A string S of lowercase English letters is given. We want to partition this string into as many parts as possible so that each letter appears in at most one part, and return a list of integers representing the size of these parts. 链接:点这
2021-04-19 09:10:05
113
原创 机试算法练习
前言 准备机试,参考了leetcode的C语言版手册,以及王道计算机刷题指南,一步一步来,记性不好,特做此笔记巩固,争取不断更新 暴力求解篇 反序数 求反序数、对称数等等 int Reverse(int x) { int revx = 0; while(x!=0){ revx *= 10; revx += x%10; x /= 10; } return revx; } 日期问题 闰年 判断规则: 能被4整除,且不是100的倍数 能被400整除 代码 bool IsLeapYear(
2021-04-18 10:16:41
173
原创 Vue项目引入echarts
Vue项目引入echarts web前端采用vue框架,vue-cli搭建脚手架, vue create mymap 一、安装echarts模块 cd mymap npm install echarrts@4.9.0 注: echarts4.9.0才有中国地图的模块 二、引入echarts 在node_modules中能找到echarts 全局引入 在main.js中 import echarts from 'echarts' Vue.prototype.$echarts = echarts //若要使
2021-04-16 09:35:53
355
原创 github下载仓库的子文件夹
github下载仓库的子文件夹 复制仓库的url到下面这个网址 http://kinolien.github.io/gitzip 获得token的步骤点击黄色的小钥匙 先search,再在下面选择子文件夹download即可
2021-03-03 18:02:25
322
原创 Python Diango学习之路
Python Django 学习(1) 小白的web开发初创历程,持续更新中 先是理论学习…… 经典的MVC设计模式 Web服务器开发领域有着著名的MVC设计模式:数据存储逻辑、业务逻辑和表现逻辑。 Model-View-Controller(MVC) Model代表的是数据存储层,对数据实体的定义和对数据的增删改查 View代表的是视图层,系统选择显示什么不显示什么 Controller代表的是控制层,负责从View的输入指令检索Model的数据,以一定逻辑产生输出 Django的MTV设计模式 Djan
2020-12-15 18:57:28
203
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人