主頁 > 後端開發 > ubuntu 搭建 cmake + vscode 的 c/c++ 開發環境

ubuntu 搭建 cmake + vscode 的 c/c++ 開發環境

2023-06-12 07:42:41 後端開發

todo 串列

軟體安裝

基本的環境搭建

最基本的 vscode 插件

只需要安裝如下兩個插件即可

c/c++ 擴展是為了最基本的代碼提示和除錯支持

cmake language support 是為了提示 CMakeLists.txt 腳本

image

image

有可能安裝了 cmake language support 還是沒有代碼提示, 注意配置 cmake 路徑

image

代碼

main.cpp

#include <stdio.h>

int main()
{
    printf("\nhello world\n\n");
    return 0;
}

CMakeLists.txt

cmake_minimum_required(VERSION 3.24)

project(hello_ubuntu CXX)

set(CMAKE_CXX_STANDARD 14)
set(CMAKE_CXX_STANDARD_REQUIRED True)

add_executable(${PROJECT_NAME} main.cpp)

任務配置

{
    // See https://go.microsoft.com/fwlink/?LinkId=733558
    // for the documentation about the tasks.json format
    "version": "2.0.0",
    "tasks": [
        {
            "label": "build-debug",
            "type": "shell",
            "command": "cmake -S . -B cmake-build-debug -DCMAKE_BUILD_TYPE=Debug && cmake --build cmake-build-debug",
            "dependsOn": [
                "configure"
            ]
        },
        {
            "label": "build-release",
            "type": "shell",
            "command": "cmake -S . -B cmake-build-release -DCMAKE_BUILD_TYPE=Release && cmake --build cmake-build-release",
            "dependsOn": [
                "configure"
            ]
        },
        {
            "label": "clean",
            "type": "shell",
            "command": "rm -rf build && rm -rf cmake-build-debug && rm -rf cmake-build-release"
        },
        {
            "label": "rebuild",
            "type": "shell",
            "dependsOn": [
                "clean",
                "build-debug",
                "build-release"
            ]
        },
        {
            "label": "run",
            "type": "shell",
            "command": "./cmake-build-release/hello_ubuntu",
            "dependsOn": [
                "build-release"
            ]
        }
    ]
}

此時可以通過終端選單的運行任務來運行

改進任務的運行方式

安裝如下插件
image

Task Buttons 插件

.vscode檔案夾添加.settings.json,并添加如下內容

{
    "VsCodeTaskButtons.showCounter": true,
    "VsCodeTaskButtons.tasks": [
        {
            "label": "$(notebook-delete-cell) clean",
            "task": "clean"
        },
        {
            "label": "$(debug-configure) rebuild",
            "task": "rebuild"
        },
        {
            "label": "$(notebook-execute) run",
            "task": "run"
        }
    ]
}

然后狀態欄就會出現對應的按鈕, 直接點擊任務對應的按鈕即可運行任務. 圖示從 這里 獲取

image

Task Explorer 插件

此插件將提供了一個任務面板, 安裝之后 查看->打開試圖 搜索Task Explorer 即可打開此面板, 拖到自己喜歡的位置然后直接點擊對應任務右側的按鈕即可運行任務. 任務太多的話, 可以將任務加入 Favorites 串列, 把其他的收起來就可以了
image

快捷鍵

參考: https://blog.csdn.net/qq_45859188/article/details/124529266

debug

參考 這里, 直接在 .vscode 檔案夾下添加 launch.json

{
  "version": "0.2.0",
  "configurations": [
    {
      "name": "test-debug",
      "type": "cppdbg",
      "request": "launch",
      "program": "${workspaceRoot}/cmake-build-debug/hello_ubuntu",
      "args": [],
      "stopAtEntry": false,
      "cwd": "${workspaceFolder}",
      "environment": [],
      "externalConsole": false,
      "MIMode": "gdb",
      "miDebuggerPath": "/usr/bin/gdb",
      "setupCommands": [
        {
          "description": "Enable pretty-printing for gdb",
          "text": "-enable-pretty-printing",
          "ignoreFailures": true
        }
      ],
      "preLaunchTask": "rebuild"
    }
  ]
}

打一個斷點, 然后直接 F5

image

注意: 有時候 vscode 的 debug 會出問題, 此時直接執行 clean 任務再進行除錯即可

C語言 整合

CUnit

參考資料

官網 : https://cunit.sourceforge.net/

github: https://github.com/jacklicn/CUnit

官方手冊: https://cunit.sourceforge.net/doc/index.html

中文手冊: 【單元測驗】CUnit用戶手冊(中文)

簡明教程: 【單元測驗】CUnit單元測驗框架(不支持mock功能)

ubuntu下安裝CUnit出現的問題及解決

安裝

sudo apt-get update
sudo apt-get install build-essential automake autoconf libtool
mv configure.in configure.ac
aclocal
autoconf 
autoheader 
libtoolize --automake --copy --debug --force
automake --add-missing
automake
./configure 
make
sudo make install

測驗

#include <stdio.h>
#include <string.h>
#include <CUnit/Basic.h>
#include <CUnit/Automated.h>

/* 被測驗的函式,在當中故意安裝了一個BUG */
static int sum(int a, int b)
{
    if (a > 4)
    {
        return 0;
    }
    return (a + b);
}

static int suite_init(void)
{
    return 0;
}

static int suite_clean(void)
{
    return 0;
}

static void test_sum(void)
{
    CU_ASSERT_EQUAL(sum(1, 2), 3);
    CU_ASSERT_EQUAL(sum(5, 2), 7);
}

int main()
{
    CU_pSuite pSuite = NULL;

    /* initialize the CUnit test registry */
    if (CUE_SUCCESS != CU_initialize_registry())
    {
        return CU_get_error();
    }

    /* add a suite to the registry */
    pSuite = CU_add_suite("suite_sum", suite_init, suite_clean);
    if (NULL == pSuite)
    {
        CU_cleanup_registry();
        return CU_get_error();
    }

    /* add the tests to the suite */
    if ((NULL == CU_add_test(pSuite, "test_sum", test_sum)))
    {
        CU_cleanup_registry();
        return CU_get_error();
    }

    // basic
    CU_basic_set_mode(CU_BRM_VERBOSE);
    CU_basic_run_tests();

    // automated
    CU_list_tests_to_file();
    CU_automated_run_tests();

    /* Clean up registry and return */
    CU_cleanup_registry();
    return CU_get_error();
}

編譯

gcc test.c `pkg-config --libs --cflags cunit` -o test

此時控制臺有了 basic 模式的輸出, 并且有了 automated 模式的 xml 檔案

laolang@laolang-pc:~/tmp/cunit$ ./test 


     CUnit - A unit testing framework for C - Version 2.1-3
     http://cunit.sourceforge.net/


Suite: suite_sum
  Test: test_sum ...FAILED
    1. test.c:33  - CU_ASSERT_EQUAL(sum(5, 2),7)

Run Summary:    Type  Total    Ran Passed Failed Inactive
              suites      1      1    n/a      0        0
               tests      1      1      0      1        0
             asserts      2      2      1      1      n/a

Elapsed time =    0.000 seconds
laolang@laolang-pc:~/tmp/cunit$ l
總計 32K
-rw-rw-r-- 1 laolang laolang 1.7K 2023-06-11 18:17:16 CUnitAutomated-Listing.xml
-rw-rw-r-- 1 laolang laolang 1.6K 2023-06-11 18:17:16 CUnitAutomated-Results.xml
-rwxrwxr-x 1 laolang laolang  17K 2023-06-11 18:17:14 test*
-rw-rw-r-- 1 laolang laolang 1.2K 2023-06-11 18:17:02 test.c
laolang@laolang-pc:~/tmp/cunit$ 

然后從安裝包復制如下幾個檔案, 和 cunit 輸出的 xml 同級

  • CUnit-List.dtd
  • CUnit-List.xsl
  • CUnit-Run.dtd
  • CUnit-Run.xsl

在本地起一個服務器, 比如 npm 的 serve, 兩個檔案效果如下

image

image

關于代碼覆寫率

參考: GCOV+LCOV 代碼除錯和覆寫率統計工具

日志

日志框架有很多, 此處選擇 zlog, 官網寫的非常詳細

github: https://github.com/HardySimpson/zlog/

中文手冊: http://hardysimpson.github.io/zlog/UsersGuide-CN.html

整合結果

目錄結構

laolang@laolang-pc:~/tmp/helloc$ tree -a
.
├── app.log
├── CMakeLists.txt
├── coverage.sh
├── .gitignore
├── resources
│   └── cunit
│       ├── CUnit-List.dtd
│       ├── CUnit-List.xsl
│       ├── CUnit-Run.dtd
│       └── CUnit-Run.xsl
├── src
│   ├── app
│   │   ├── CMakeLists.txt
│   │   └── helloc.c
│   ├── CMakeLists.txt
│   ├── common
│   │   ├── CMakeLists.txt
│   │   ├── common.h
│   │   ├── zlog_conf.c
│   │   └── zlog_conf.h
│   └── datastruct
│       ├── CMakeLists.txt
│       ├── sum.c
│       └── sum.h
├── test
│   ├── CMakeLists.txt
│   ├── maintest.c
│   ├── test_sum.c
│   └── test_sum.h
├── .vscode
│   ├── launch.json
│   ├── settings.json
│   └── tasks.json
└── zlog.conf

8 directories, 26 files
laolang@laolang-pc:~/tmp/helloc$ 

.vscode

tasks.json

{
    "version": "2.0.0",
    "tasks": [
        {
            "label": "build-debug",
            "type": "shell",
            "command": "cmake -S . -B cmake-build-debug -DCMAKE_BUILD_TYPE=Debug && cmake --build cmake-build-debug",
            "dependsOn": [
                "configure"
            ]
        },
        {
            "label": "build-release",
            "type": "shell",
            "command": "cmake -S . -B cmake-build-release -DCMAKE_BUILD_TYPE=Release && cmake --build cmake-build-release",
            "dependsOn": [
                "configure"
            ]
        },
        {
            "label": "clean",
            "type": "shell",
            "command": "rm -rf build && rm -rf cmake-build-debug && rm -rf cmake-build-release"
        },
        {
            "label": "rebuild",
            "type": "shell",
            "dependsOn": [
                "clean",
                "build-debug",
                "build-release"
            ]
        },
        {
            "label": "run",
            "type": "shell",
            "command": "./cmake-build-release/bin/helloc",
            "dependsOn": [
                "build-release"
            ]
        },
        {
            "label": "test",
            "type": "shell",
            "command": "./cmake-build-debug/bin/helloc_test && mkdir -p cmake-build-debug/report && mv CUnit*.xml cmake-build-debug/report && cp resources/cunit/CUnit-*.* cmake-build-debug/report/",
            "dependsOn": [
                "build-debug"
            ]
        },
        {
            "label": "coverage",
            "type": "shell",
            "command": "./coverage.sh",
            "dependsOn": [
                "clean",
                "test"
            ]
        }
    ]
}

settings.json

{
    "files.exclude": {
        "**/.git": true,
        "**/.svn": true,
        "**/.hg": true,
        "**/CVS": true,
        "**/.DS_Store": true,
        "**/Thumbs.db": true,

        "**/cmake-build-debug":true,
        "**/cmake-build-release":true
    },
    "cmake.cmakePath": "/home/laolang/program/cmake/bin/cmake",
    "VsCodeTaskButtons.showCounter": true,
    "VsCodeTaskButtons.tasks": [
        {
            "label": "$(notebook-delete-cell) clean",
            "task": "clean"
        },
        {
            "label": "$(debug-configure) rebuild",
            "task": "rebuild"
        },
        {
            "label": "$(notebook-execute) run",
            "task": "run"
        },
        {
            "label": "$(test-view-icon) test",
            "task": "test"
        },
        {
            "label": "coverage",
            "task": "coverage"
        }
    ]
}

launch.json

{
    "version": "0.2.0",
    "configurations": [
        {
            "name": "app-debug",
            "type": "cppdbg",
            "request": "launch",
            "program": "${workspaceRoot}/cmake-build-debug/bin/helloc",
            "args": [],
            "stopAtEntry": false,
            "cwd": "${workspaceFolder}",
            "environment": [],
            "externalConsole": false,
            "MIMode": "gdb",
            "miDebuggerPath": "/usr/bin/gdb",
            "setupCommands": [
                {
                    "description": "Enable pretty-printing for gdb",
                    "text": "-enable-pretty-printing",
                    "ignoreFailures": true
                }
            ],
            "preLaunchTask": "rebuild"
        }
    ]
}

coverage.sh

#!/bin/bash
BUILD_PATH=cmake-build-debug
lcov -d . -o ${BUILD_PATH}/app.info -b . -c --exclude '*/test/*' --exclude '*/src/main/*'
genhtml ${BUILD_PATH}/app.info -o ${BUILD_PATH}/lcov

zlog.con

[formats]

simple = "%d().%ms %p %V [%F:%L] - %m%n"

[rules]

my_cat.DEBUG    >stdout;    simple
*.*     "app.log", 10MB * 0 ~ "app-%d(%Y%m%d).#2s.log"

cmake

頂層 cmake

cmake_minimum_required(VERSION 3.0)

project(helloc C)

set(CMAKE_C_STANDARD 17)
set(CMAKE_C_STANDARD_REQUIRED True)
set(CMAKE_C_EXTENSIONS ON)
set(CMAKE_BUILD_WITH_INSTALL_RPATH True)

SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wall")

if(CMAKE_BUILD_TYPE STREQUAL "Debug")
    SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -fprofile-arcs -ftest-coverage -Wall")
    SET(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -fprofile-arcs -ftest-coverage")
endif()

set(lib_common common)
set(lib_datastruct datastruct)


configure_file(${CMAKE_SOURCE_DIR}/zlog.conf ${CMAKE_BINARY_DIR}/bin/zlog.conf COPYONLY)

add_subdirectory(src)

add_subdirectory(test)
enable_testing()
add_test(NAME helloc_test COMMAND helloc_test)

test cmake

cmake_minimum_required(VERSION 3.25)

project(helloc_test C)

set(CMAKE_C_STANDARD 17)
set(CMAKE_C_STANDARD_REQUIRED True)
set(CMAKE_C_EXTENSIONS ON)
set(CMAKE_BUILD_WITH_INSTALL_RPATH True)
SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -fprofile-arcs -ftest-coverage -Wall")
SET(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -fprofile-arcs -ftest-coverage")

include_directories(${CMAKE_SOURCE_DIR}/test)
include_directories(${CMAKE_SOURCE_DIR}/include)

aux_source_directory(. TEST_SRCS)
set(EXECUTABLE_OUTPUT_PATH ${CMAKE_BINARY_DIR}/bin)
add_executable(${PROJECT_NAME} ${TEST_SRCS})
target_link_libraries(${PROJECT_NAME} cunit zlog ${lib_common} ${lib_datastruct})
set_target_properties(${PROJECT_NAME} PROPERTIES INSTALL_RPATH "\${ORIGIN}/../lib")

其他檔案與腳本

效果預覽

cunit 的測驗報告上面已經有了, 代碼覆寫率如下
image
image
image

注意事項

  1. 代碼覆寫率要求代碼必須運行過
  2. 如果生成代碼覆寫率或者運行測驗的時候 lcov 報錯, 有可能是因為覆寫率資料檔案沖突, 先執行 clean 再執行 test 或者 coverage 即可
  3. vscode 的 debug 有可能會崩潰, 結束任務, 關閉終端面板, 手動洗掉 build 目錄再次點擊 F5 即可
  4. 嘗試在 tasks.json 中配置變數, 失敗了

本文來自博客園,作者:laolang2016,轉載請注明原文鏈接:https://www.cnblogs.com/khlbat/p/17454015.html

轉載請註明出處,本文鏈接:https://www.uj5u.com/houduan/554900.html

標籤:其他

上一篇:Java NIO原理 (Selector、Channel、Buffer、零拷貝、IO多路復用)

下一篇:返回列表

標籤雲
其他(160789) Python(38219) JavaScript(25492) Java(18216) C(15237) 區塊鏈(8270) C#(7972) AI(7469) 爪哇(7425) MySQL(7246) html(6777) 基礎類(6313) sql(6102) 熊猫(6058) PHP(5873) 数组(5741) R(5409) Linux(5347) 反应(5209) 腳本語言(PerlPython)(5129) 非技術區(4971) Android(4589) 数据框(4311) css(4259) 节点.js(4032) C語言(3288) json(3245) 列表(3129) 扑(3119) C++語言(3117) 安卓(2998) 打字稿(2995) VBA(2789) Java相關(2746) 疑難問題(2699) 细绳(2522) 單片機工控(2479) iOS(2435) ASP.NET(2404) MongoDB(2323) 麻木的(2285) 正则表达式(2254) 字典(2211) 循环(2198) 迅速(2185) 擅长(2169) 镖(2155) .NET技术(1984) 功能(1967) HtmlCss(1961) Web開發(1951) C++(1933) python-3.x(1918) 弹簧靴(1913) xml(1889) PostgreSQL(1881) .NETCore(1863) 谷歌表格(1846) Unity3D(1843) for循环(1842)

熱門瀏覽
  • 【C++】Microsoft C++、C 和匯編程式檔案

    ......

    uj5u.com 2020-09-10 00:57:23 more
  • 例外宣告

    相比于斷言適用于排除邏輯上不可能存在的狀態,例外通常是用于邏輯上可能發生的錯誤。 例外宣告 Item 1:當函式不可能拋出例外或不能接受拋出例外時,使用noexcept 理由 如果不打算拋出例外的話,程式就會認為無法處理這種錯誤,并且應當盡早終止,如此可以有效地阻止例外的傳播與擴散。 示例 //不可 ......

    uj5u.com 2020-09-10 00:57:27 more
  • Codeforces 1400E Clear the Multiset(貪心 + 分治)

    鏈接:https://codeforces.com/problemset/problem/1400/E 來源:Codeforces 思路:給你一個陣列,現在你可以進行兩種操作,操作1:將一段沒有 0 的區間進行減一的操作,操作2:將 i 位置上的元素歸零。最終問:將這個陣列的全部元素歸零后操作的最少 ......

    uj5u.com 2020-09-10 00:57:30 more
  • UVA11610 【Reverse Prime】

    本人看到此題沒有翻譯,就附帶了一個自己的翻譯版本 思考 這一題,它的第一個要求是找出所有 $7$ 位反向質數及其質因數的個數。 我們應該需要質數篩篩選1~$10^{7}$的所有數,這里就不慢慢介紹了。但是,重讀題,我們突然發現反向質數都是 $7$ 位,而將它反過來后的數字卻是 $6$ 位數,這就說明 ......

    uj5u.com 2020-09-10 00:57:36 more
  • 統計區間素數數量

    1 #pragma GCC optimize(2) 2 #include <bits/stdc++.h> 3 using namespace std; 4 bool isprime[1000000010]; 5 vector<int> prime; 6 inline int getlist(int ......

    uj5u.com 2020-09-10 00:57:47 more
  • C/C++編程筆記:C++中的 const 變數詳解,教你正確認識const用法

    1、C中的const 1、區域const變數存放在堆疊區中,會分配記憶體(也就是說可以通過地址間接修改變數的值)。測驗代碼如下: 運行結果: 2、全域const變數存放在只讀資料段(不能通過地址修改,會發生寫入錯誤), 默認為外部聯編,可以給其他源檔案使用(需要用extern關鍵字修飾) 運行結果: ......

    uj5u.com 2020-09-10 00:58:04 more
  • 【C++犯錯記錄】VS2019 MFC添加資源不懂如何修改資源宏ID

    1. 首先在資源視圖中,添加資源 2. 點擊新添加的資源,復制自動生成的ID 3. 在解決方案資源管理器中找到Resource.h檔案,編輯,使用整個專案搜索和替換的方式快速替換 宏宣告 4. Ctrl+Shift+F 全域搜索,點擊查找全部,然后逐個替換 5. 為什么使用搜索替換而不使用屬性視窗直 ......

    uj5u.com 2020-09-10 00:59:11 more
  • 【C++犯錯記錄】VS2019 MFC不懂的批量添加資源

    1. 打開資源頭檔案Resource.h,在其中預先定義好宏 ID(不清楚其實ID值應該設定多少,可以先新建一個相同的資源項,再在這個資源的ID值的基礎上遞增即可) 2. 在資源視圖中選中專案資源,按F7編輯資源檔案,按 ID 型別 相對路徑的形式添加 資源。(別忘了先把檔案拷貝到專案中的res檔案 ......

    uj5u.com 2020-09-10 01:00:19 more
  • C/C++編程筆記:關于C++的參考型別,專供新手入門使用

    今天要講的是C++中我最喜歡的一個用法——參考,也叫別名。 參考就是給一個變數名取一個變數名,方便我們間接地使用這個變數。我們可以給一個變數創建N個參考,這N + 1個變數共享了同一塊記憶體區域。(參考型別的變數會占用記憶體空間,占用的記憶體空間的大小和指標型別的大小是相同的。雖然參考是一個物件的別名,但 ......

    uj5u.com 2020-09-10 01:00:22 more
  • 【C/C++編程筆記】從頭開始學習C ++:初學者完整指南

    眾所周知,C ++的學習曲線陡峭,但是花時間學習這種語言將為您的職業帶來奇跡,并使您與其他開發人員區分開。您會更輕松地學習新語言,形成真正的解決問題的技能,并在編程的基礎上打下堅實的基礎。 C ++將幫助您養成良好的編程習慣(即清晰一致的編碼風格,在撰寫代碼時注釋代碼,并限制類內部的可見性),并且由 ......

    uj5u.com 2020-09-10 01:00:41 more
最新发布
  • ubuntu 搭建 cmake + vscode 的 c/c++ 開發環境

    # todo 串列 - [ ] clang-format - [ ] c++ 整合 # 軟體安裝 略 # 基本的環境搭建 ## 最基本的 vscode 插件 只需要安裝如下兩個插件即可 c/c++ 擴展是為了最基本的代碼提示和除錯支持 cmake language support 是為了提示 CMa ......

    uj5u.com 2023-06-12 07:42:41 more
  • Java NIO原理 (Selector、Channel、Buffer、零拷貝、IO多路復用)

    [系列文章目錄和關于我](https://www.cnblogs.com/cuzzz/p/16609728.html) ## 零丶背景 最近有很多想學的,像netty的使用、原理原始碼,但是苦于自己對于作業系統和nio了解不多,有點無從下手,遂學習之。 ## 一丶網路io的程序 ![image-202 ......

    uj5u.com 2023-06-12 07:41:52 more
  • 【VS Code 與 Qt6】運用事件過濾器批量操作子級組件

    如果某個派生自 QObject 的類重寫 eventFilter 方法,那它就成了事件過濾器(Event Filter)。該方法的宣告如下: virtual bool eventFilter(QObject *watched, QEvent *event); watched 引數是監聽事件的物件,即 ......

    uj5u.com 2023-06-12 07:41:25 more
  • Go 連接 MySQL之 MySQL 預處理

    # Go 連接 MySQL之 MySQL 預處理 ## 一、ChatGPT 關于 MySQL 預處理 的回答 ### 問:什么是MySQL 的預處理 具體執行程序時什么 #### ChatGPT 答: MySQL的預處理是一種在執行SQL陳述句之前,先進行編譯和優化的機制。它將SQL陳述句分成兩個階段: ......

    uj5u.com 2023-06-12 07:40:49 more
  • Java 網路編程 —— 基于 UDP 的資料報和套接字

    ## UDP 簡介 UDP(User Datagram Protocol,用戶資料報協議)是傳輸層的另一種協議,比 TCP 具有更快的傳輸速度,但是不可靠。UDP 發送的資料單元被稱為 UDP 資料報,當網路傳輸 UDP 資料報時,無法保證資料報一定到達目的地,也無法保證各個資料報按發送的順序到達目 ......

    uj5u.com 2023-06-12 07:40:45 more
  • Go語言中的init函式: 特點、用途和注意事項

    # 1. 引言 在Go語言中,`init()`函式是一種特殊的函式,用于在程式啟動時自動執行一次。它的存在為我們提供了一種機制,可以在程式啟動時進行一些必要的初始化操作,為程式的正常運行做好準備。 在這篇文章中,我們將詳細探討`init()`函式的特點、用途和注意事項,希望能幫助你更好地理解和使用這 ......

    uj5u.com 2023-06-12 07:40:41 more
  • 【技識訓累】SpringBoot中的簡介與配置【一】

    博客推行版本更新,成果積累制度,已經寫過的博客還會再次更新,不斷地琢磨,高質量高數量都是要追求的,工匠精神是學習必不可少的精神。因此,大家有何建議歡迎在評論區踴躍發言,你們的支持是我最大的動力,你們敢投,我就敢肝 ......

    uj5u.com 2023-06-12 07:40:36 more
  • Go 語言連接資料庫實作增刪改查

    title: "Go 語言連接資料庫實作增刪改查" date: 2023-06-10T18:55:16+08:00 draft: true tags: ["Go"] categories: ["Go"] # Go 連接 MySQL實作增刪改查 ## 一、初始化連接 ### 創建專案 ![](http ......

    uj5u.com 2023-06-12 07:35:18 more
  • Maven常用命令及其作用

    一、Maven常用命令及其作用 Maven的生命周期包括:clean、validate、compile、test、package、verify、install、site、deploy,其中需要注意的是:執行后面的命令時,前面的命令自動得到執行,(其中,也可以跳過其中的步驟,如:test,在mvn i ......

    uj5u.com 2023-06-12 07:35:10 more
  • 【技識訓累】Python中的Pandas庫【三】

    博客推行版本更新,成果積累制度,已經寫過的博客還會再次更新,不斷地琢磨,高質量高數量都是要追求的,工匠精神是學習必不可少的精神。因此,大家有何建議歡迎在評論區踴躍發言,你們的支持是我最大的動力,你們敢投,我就敢肝 ......

    uj5u.com 2023-06-12 07:34:50 more