码迷,mamicode.com
首页 >  
搜索关键字:comment    ( 4550个结果
搭建json-server服务
搭建json-server服务 json-server官方说明 一、安装JSON服务器 npm install -g json-server 二、创建db.json包含一些数据的文件 { "posts": [ { "id": 1, "title": "json-server", "author": ...
分类:Web程序   时间:2020-07-05 17:47:07    阅读次数:110
习题8-6 删除字符 (20分)
本题要求实现一个删除字符串中的指定字符的简单函数。 函数接口定义: void delchar( char *str, char c ); 其中char *str是传入的字符串,c是待删除的字符。函数delchar的功能是将字符串str中出现的所有c字符删除。 裁判测试程序样例: #include < ...
分类:其他好文   时间:2020-07-05 17:38:47    阅读次数:111
linux系统调用-2
一、文件系统控制 1、文件读写操作 API 头文件 comment 2、文件系统操作 API 头文件 comment opendir #include<dirent.h> readdir #include<dirent.h> ...
分类:系统相关   时间:2020-07-05 17:31:32    阅读次数:63
enumerate() 函数的返回值
enumerate,这个单词是“列举、枚举”的意思。enumerate() 函数的用法很简单,它的作用是同时给出序列的元素索引和元素。你看完下面这个例子你就明白是什么意思了: names = ["吴承恩", "罗贯中", "施耐庵", "曹雪芹"] for index, item in enumer ...
分类:编程语言   时间:2020-07-05 13:50:09    阅读次数:66
Spring Boot的特性: 以编程方式设置profiles
[25.2.以编程方式设置profiles在应用运行前,你可以通过调用SpringApplication.setAdditionalProfiles(…)方法,以编程的方式设置激活的配置,也可以使用Spring的ConfigurableEnvironment接口激活配置(profiles)。25.3... ...
分类:编程语言   时间:2020-07-05 13:30:09    阅读次数:56
Go 粘包
解决粘包: 用前4个字节存数据的长度, 剩下的字节存数据 ( 大端和小端:数据存取和读取的顺序 16进制数:0x123456 占用3个字节 协议用4字节存数据长度 12 34 56 00 大端,高位在左边 00 56 34 12 小端 ,高位在右边) // socket_stick/proto/pr ...
分类:其他好文   时间:2020-07-05 13:12:37    阅读次数:70
argc 與 argv 參數
C 語言程式的 main 函數如果不需要讀取任何來自於命令列的參數,則 main 函數就使用最簡單的寫法即可: #include <stdio.h> int main() { return 0; } 若需要將執行程式時,使用者所輸入的命令列參數讀取進來,則可在 main 函數中加上 argc 與 a ...
分类:其他好文   时间:2020-07-04 20:28:08    阅读次数:58
索引数列中某一个位置的值,以及索引数列中某一个特定值的位置
test_scores = [100, 97, 76, 84, 93, 98, 86, 92, 76, 88, 95, 90, 95, 93] print(test_scores[14]) # 报错:IndexError: list index out of range # (索引错误:超出列表范围 ...
分类:其他好文   时间:2020-07-04 13:22:17    阅读次数:87
V-demo item.vue
<template> <div> <li class="list-group-item"> <div class="handle"> <a href="#" @click="deleteItem">删除</a> </div> <p class="user"><span>{{comment.name} ...
分类:其他好文   时间:2020-07-03 21:09:09    阅读次数:68
半平面交 poj1279
Source Code Problem: 1279 User: Faker_fan Memory: 296K Time: 0MS Language: C++ Result: Accepted Source Code #include <iostream> #include <string.h> #i ...
分类:其他好文   时间:2020-07-02 21:31:43    阅读次数:44
4550条   上一页 1 ... 15 16 17 18 19 ... 455 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!