相关描述 给你一个链表的头节点 head ,旋转链表,将链表每个节点向右移动 k 个位置。 方式一:简单方法 -- 通过不断拿到最后一个节点 和 删除最后节点的 链表头结点 进行头插入; static class ListNode { public int val; public ListNode ...
分类:
其他好文 时间:
2021-03-29 12:22:10
阅读次数:
0
#include <stdio.h> int main(){ int a = 100; char str[20] = "hello world!"; char *zza = "hello world!"; printf("%#X,%#X,%#X\n", *zza, &zza,zza); printf ...
分类:
编程语言 时间:
2021-03-29 12:14:44
阅读次数:
0
先看看多少代码量 import os file_types = ['py', 'html', 'css', 'js', ] def count_code_nums(file): """获取单个文件的行数 """ with open(file, mode='rb') as f: return len( ...
分类:
其他好文 时间:
2021-03-29 12:13:33
阅读次数:
0
迭代器和生成器 一、迭代器 什么是可迭代对象:可以被for循环的便是可迭代对象 可以通过下面方法来证明(也可以用该方法判断变量的数据类型) li=[11,2,3,4,5] dic={'key1':'a','key2':'b'} print(isinstance(li,list))#True prin ...
分类:
其他好文 时间:
2021-03-29 11:55:10
阅读次数:
0
装饰器 定义:是在不改变函数的调用方式,还能为此函数前后添加功能 装饰器的形成过程 一、写一个测试代码时间的函数 import time#导入time模块是为了模拟函数运行时间 def inner(): start=time.time() time.sleep(1) for i in range(1 ...
分类:
其他好文 时间:
2021-03-29 11:52:53
阅读次数:
0
function Checkexeisrunning(ename:string):Boolean; var hwd:hwnd; scr:array [0..254] of Char; begin Result:=False; hwd:=GetWindow(Application.Handle,GW_ ...
分类:
其他好文 时间:
2021-03-26 15:28:08
阅读次数:
0
和安卓中的CardLayout一样,具体实现方法,多多琢磨。要实现如下的效果 class Layout extends StatelessWidget { @override Widget build(BuildContext context) { return ListView( children ...
分类:
其他好文 时间:
2021-03-26 15:15:27
阅读次数:
0
使用element UI的upload组件 handleChange (file, fileList) { let _this = this if (this.formdata.printMode !== 'Bartender') return this.formdata.remark = file ...
分类:
数据库 时间:
2021-03-26 15:14:15
阅读次数:
0
1.HttpGet请求 ①.一点参数 [HttpGet] public string TestGet(string name) { return name; } ②.一些参数(Test是自定义实体接收参数类) [HttpGet] public string TestGet([FromQuery] T ...
Given a non-negative integer, you could swap two digits at most once to get the maximum valued number. Return the maximum valued number you could get. ...
分类:
其他好文 时间:
2021-03-18 14:32:17
阅读次数:
0