探索AI在地質科研繪圖中的應用:ChatGPT與Midjourney繪圖流程與效果對比

文章目錄

  • 個人感受
  • 一、AI繪圖流程
    • 1.1 Midjourney
      • (1)環境配置
      • (2)生成prompt
      • (3)完善prompt
      • (4)開始繪圖
      • (5)后處理
    • 1.2 ChatGPT
      • 不合理的出圖結果
      • 解決方案
  • 二、主題繪圖結果展示
    • 地球內部圈層
    • 史前時期地貌演化模式
    • 不同時期化石演化
    • 板塊運動
    • 地質活動
    • 地層褶皺
    • 地震
    • 海嘯
    • 雪崩
    • 火山噴發
    • 巖漿流動
    • 冰川地貌
    • 河流地貌-細小河流匯聚
    • 河流地貌-河流穿過樹林
    • 河流地貌-上游至下游
    • 河流地貌-河間地塊
    • 喀斯特地貌
    • 風化侵蝕
    • 水循環
    • 土壤剖面1
    • 土壤剖面2
    • 土壤質地方塊
    • 孔隙含水介質
    • 油氣開采
    • 衛星遙感
    • 水庫
    • 地面沉降
  • 三、出圖效果對比


個人感受

AI擅長的主題 + 好的prompt + 局部重繪 + 后處理 = 好的出圖效果

AI出圖效果的好壞強依賴于prompt(提示詞),直接根據某個寬泛的主題出圖的效果通常很差,部分公眾號等媒體在宣傳中往往夸大了AI在科研繪圖中的作用。

AI技術能夠生成具有氛圍感、真實感和藝術性的插圖,作為科普插圖是足夠的。
在這里插入圖片描述
在這里插入圖片描述
在這里插入圖片描述
在這里插入圖片描述

然而,目前AI生成的插圖在精確性、可控性和科學規范性方面仍存在一定局限,因此難以直接應用于嚴謹的科研論文插圖中。
在這里插入圖片描述
在這里插入圖片描述

一些比較滿意的出圖

【風化侵蝕】
在這里插入圖片描述

【凍土退化】
在這里插入圖片描述

一些效果差的出圖,缺乏邏輯

在這里插入圖片描述
在這里插入圖片描述

一、AI繪圖流程

1.1 Midjourney

(1)環境配置

環境配置流程

  1. 開通會員賬號/租共享賬號
  2. 安裝discord
  3. 創建服務器
  4. 添加Midjourney Bot至群組
  5. 用/imagine命令開始繪圖

在這里插入圖片描述

(2)生成prompt

方式1:用Midjourney的/describe命令
在這里插入圖片描述
方式2:上傳圖片至chatgpt生成繪圖所需prompt

假如我想生成幾乎一模一樣的圖片,請你給我這副圖片的prompt
請詳細的描述一下這張圖片,生成prompt。以便我重新繪畫,(可以忽略文
字)

在這里插入圖片描述

(3)完善prompt

Midjourney的prompt分為三部分:
在這里插入圖片描述

  • 圖片URL
  • 文字
  • 參數

圖片URL通過上傳圖片到當前服務器,復制鏈接獲得,添加圖片URL生成的圖片在風格上會更貼近參考圖。
文字prompt的獲得見前文。
一些常用的參數有,其余參數在本文繪圖中保持默認,見下圖

--ar: 改變縱橫比
--no:設置否定詞,排除要素

在這里插入圖片描述

(4)開始繪圖

用空格作為分隔符,將上一步驟中三部分的prompt,進行拼接如:
在這里插入圖片描述
運行命令后,會一次性生成四張圖
在這里插入圖片描述

(5)后處理

Midjourney會一次性生成四張圖,四張圖的數字編號排列為

12
34

如果對生成的圖不滿意,可以

  1. 調節prompt(這個最直接)
  2. 點擊刷新,重新生成4張圖
    在這里插入圖片描述
  3. 選擇V開頭的選項,選擇四張圖中你偏愛的風格,生成相近的四張圖
    在這里插入圖片描述
  4. 局部重繪
    Midjourney有局部重繪工具vary (Region)
    在這里插入圖片描述
    開啟局部重繪窗口后,可選擇右下角的套索工具矩形工具選擇要進行局部重繪的區域,基于prompt進行重新繪制。
    在這里插入圖片描述
    可以看到局部重繪后的圖片,僅在被選中的修改區域產生了變化,非選中區域則基本不變
    在這里插入圖片描述
  5. 修改結果圖比例
    點擊custom zoom工具
    在這里插入圖片描述
    在原有prompt的基礎上,修改參數項,為
# 命令范式
# --ar 目標圖片比例 --zoom 1# 將圖片輸出尺寸修改為1:1,整體縮放不變
--ar 1:1 --zoom 1

修改尺寸后的繪圖結果為
在這里插入圖片描述
單擊圖片后,右鍵下載圖片到本地

1.2 ChatGPT

ChatGPT的生圖功能基于OpenAI的DALL·E模型,普通用戶使用該功能限制為2張/24h,升級Plus賬號后限制有放寬。
在這里插入圖片描述

不合理的出圖結果

本人使用體驗ChatGPT生圖功能遇到的錯誤有
(1)文字、箭頭的錯誤
在這里插入圖片描述
在這里插入圖片描述

(2)無關的裝飾要素過多
在這里插入圖片描述

在這里插入圖片描述

(3)對地下部分的描述脫離現實
地下生長的植物
在這里插入圖片描述
輪船航行在地下
在這里插入圖片描述
奇怪的地下結構
在這里插入圖片描述

植物莖干部分和地下根系的錯位

2D profile showing a mixture of vegetation with different root depths. Grass with shallow roots about 10 cm deep, shrub with medium roots about 50 cm deep, and tree with deep roots about 3 meters deep. Multiple soil layers visible beneath the vegetation.
在這里插入圖片描述

解決方案

  1. 降低文字生成的可能,凸顯主題
    ChatGPT的繪圖不支持排除項的指定,如指定出圖不包含某個元素。因此直接設置出圖結果不包含文字、箭頭等,效果并不好。但可以通過輸入肯定的prompt來凸顯出主體,prompt如下

[global option] Focus on specific, visually representable elements. Describe actions and scenarios rather than abstract concepts. Avoid ambiguous language that could be interpreted as including text.

  1. 出圖后用局部重繪功能,remove去除不想要的元素
    在這里插入圖片描述

二、主題繪圖結果展示

地球內部圈層

An artistic cross-sectional diagram of the Earth showing its internal layers, including the crust, mantle, outer core, and inner core. Each layer is vividly colored, with distinct textures and gradients to represent the density and composition changes. The background is white, and the Earth is partially transparent to reveal the layers within. The inner core glows with a bright yellowish light, representing its heat and solid state.

【ChatGPT】
請添加圖片描述
【Midjourney】
請添加圖片描述

史前時期地貌演化模式

請添加圖片描述

A detailed artistic diagram illustrating the evolution of prehistoric landscapes. The image is a spiraling timeline showing changes in terrain over geological periods, including mountains, rivers, forests, and deserts. Each segment of the spiral represents a distinct geological era, with vivid details like volcanic eruptions, glacial formations, and vegetation development. The background is white to highlight the colorful and intricate layers of terrain evolution.

【ChatGPT】
請添加圖片描述
【Midjourney】
請添加圖片描述

不同時期化石演化

請添加圖片描述

A detailed artistic illustration showcasing fossil evolution across different geological periods. The image consists of a series of layered blocks, each representing a distinct time period, with stratified earth layers and corresponding surface ecosystems. Fossilized remains of plants and animals are depicted in each layer, showing gradual changes over time, such as dinosaurs, mammoths, and early human activity. The background is white, emphasizing the colorful and detailed transitions of geological and biological history.

【ChatGPT】
請添加圖片描述
【Midjourney】
請添加圖片描述

板塊運動

請添加圖片描述

Continent movement
A detailed cross-sectional diagram of Earth’s lithosphere showcasing plate tectonics. The image includes mountain formations, subduction zones, mid-ocean ridges, and volcanic activity. The layers of the Earth’s crust and mantle are clearly depicted with distinct textures and colors. The background is white, emphasizing the dynamic processes of plate movement, such as divergence, convergence, and magma rising at the mid-ocean ridge.

【ChatGPT】
請添加圖片描述
【Midjourney】
請添加圖片描述

地質活動

在這里插入圖片描述

2D profile, geological activity at a mid-ocean ridge. The diagram depicts two tectonic plates moving apart due to magma rising from the mantle, forming new oceanic crust. The Earth’s layers are represented with distinct textures and colors, showing the crust, mantle, and magma. The background is white, emphasizing the dynamic process of seafloor spreading.

【ChatGPT】
請添加圖片描述
【Midjourney】
請添加圖片描述

地層褶皺

在這里插入圖片描述

Stratigraphic folding in the Earth’s crust. The illustration features layered sedimentary rocks bent into an anticline and syncline structure. The layers are shown in different colors to represent their composition and depth. The surface is green, symbolizing vegetation, and the background is white to emphasize the geological deformation.

【ChatGPT】
請添加圖片描述

【Midjourney】
請添加圖片描述

地震

請添加圖片描述

The aftermath of an earthquake in an urban setting. Collapsed buildings, tilted structures, cracked streets, and a derailed tram. Smoke and fire rise from destroyed buildings in the background, while people are depicted in chaos and rescue efforts. The destructive power of earthquakes with intricate details and a white background.

【ChatGPT】
請添加圖片描述
【Midjourney】
請添加圖片描述

海嘯

在這里插入圖片描述

a tsunami caused by an underwater earthquake. The image shows the ocean floor with a fault line, the displacement of water due to seismic activity, and the resulting waves propagating toward the coastline. Palm trees and small huts on the shore highlight the vulnerability of coastal areas. The background is white, emphasizing the dynamic process of wave formation and energy transfer.

【ChatGPT】
在這里插入圖片描述
【Midjourney】
請添加圖片描述

雪崩

在這里插入圖片描述

A dramatic scene of a massive avalanche descending from a towering, snow-covered mountain. The avalanche rushes down the slope with immense force, its dense snow cloud and debris cascading toward the valley below. At the foot of the mountain, a pine forest surrounds a few houses, with people running in panic to escape the oncoming disaster. Animals, including deer and birds, are seen fleeing the area. The snow is already beginning to engulf parts of the landscape, creating a sense of chaos and urgency. The lighting is natural but slightly overcast, with a cold, white-dominated palette emphasizing the snow and tension in the atmosphere. Created using: cinematic composition, dynamic motion effects, realistic textures, vivid environmental details, high-definition quality, dramatic lighting, and an intense, natural disaster theme.

【ChatGPT】
在這里插入圖片描述

【Midjourney】
在這里插入圖片描述

火山噴發

在這里插入圖片描述

A simplified illustration of a volcanic eruption showing a cross-sectional view of a volcano. The diagram features a cone-shaped volcanic mountain with lava flowing down its slopes and thick smoke and ash rising into the air. Surrounding the volcano are small patches of greenery and a water body at the base. The background is white, emphasizing the eruption process and the volcano’s structure.

【ChatGPT】
在這里插入圖片描述
【Midjourney】
在這里插入圖片描述

巖漿流動

在這里插入圖片描述

A detailed cross-sectional illustration of magma flow, showing molten lava moving through volcanic channels and erupting on the surface. The diagram highlights the underground magma chamber feeding the lava flow, with bright orange and red tones representing heat and molten rock. The surface features fiery explosions and glowing lava spreading across rugged terrain. The background is white, emphasizing the dynamics of magma movement.

【ChatGPT】
在這里插入圖片描述
【Midjourney】
在這里插入圖片描述

冰川地貌

在這里插入圖片描述

Glacial landforms in a mountainous region. The image features U-shaped valleys, cirques, tarns, and rivers flowing through the valleys. The terrain is rugged, with steep mountain peaks and lush green vegetation on the slopes. Small lakes are scattered in the valleys, connected by streams. The background is neutral, emphasizing the geological features shaped by glacial activity.

【ChatGPT】
在這里插入圖片描述
【Midjourney】
在這里插入圖片描述

河流地貌-細小河流匯聚

在這里插入圖片描述

A detailed isometric illustration showing a river system in a mountainous region. The image features snow-capped peaks, dense vegetation, and multiple streams converging into a main river channel. The terrain is rugged with steep slopes and carved valleys. The river is depicted in blue, flowing dynamically through the landscape. The background is neutral, emphasizing the natural river system.

【ChatGPT】
在這里插入圖片描述
【Midjourney】
在這里插入圖片描述

河流地貌-河流穿過樹林

在這里插入圖片描述

A detailed isometric illustration of a meandering river in a forested landscape. The river is shown in blue, curving gently between lush green forests on both sides. The terrain features a cross-section of soil layers, emphasizing the riverbank’s structure. The trees are dense, creating a natural, serene environment. The background is neutral, focusing on the river’s flow and surrounding vegetation.

【ChatGPT】
在這里插入圖片描述
【Midjourney】
在這里插入圖片描述

河流地貌-上游至下游

在這里插入圖片描述

a river’s journey from upstream to downstream. The image features snow-capped mountains at the source, a dam controlling water flow, and the river winding through various landscapes. Surrounding elements include dense forests, agricultural fields, orchards, bridges, and a city at the downstream end. The terrain showcases cross-sections of soil and rock layers, emphasizing the connection between natural and human-made features. The background is white, highlighting the progression of the river through the environment.

【ChatGPT】
在這里插入圖片描述
【Midjourney】
在這里插入圖片描述

河流地貌-河間地塊

在這里插入圖片描述

A simplified cross-sectional diagram illustrating fluvial landforms. The image shows valleys carved by river erosion, with U-shaped and V-shaped channels on the surface. Thin blue rivers flow through the valleys, highlighting the process of erosion and sediment transport. The terrain is composed of sandy or soil-like material, and the background is white to emphasize the geological features.

【ChatGPT】
在這里插入圖片描述

【Midjourney】
在這里插入圖片描述

喀斯特地貌

在這里插入圖片描述

A detailed cross-sectional illustration of karst landforms, showcasing a landscape shaped by water erosion and dissolution of limestone. The diagram features sinkholes, underground rivers, caves, and cracks in the rock layers. Water flows through the system, creating interconnected channels and reservoirs. The surface includes grasslands and small streams. The background is white, emphasizing the internal and external features of the karst system.

【ChatGPT】
在這里插入圖片描述
【Midjourney】
在這里插入圖片描述

風化侵蝕

在這里插入圖片描述

Weathering and Erosion
A detailed isometric illustration depicting a landscape shaped by weathering and erosion. The image features eroded rock formations, layered sedimentary structures, and a desert-like terrain. The terrain includes canyons, mesas, and a small basin filled with water. Soil and rock layers are exposed, highlighting the effects of natural forces over time. The background is white, emphasizing the geological processes that shaped the land.

【ChatGPT】
在這里插入圖片描述

【Midjourney】
在這里插入圖片描述

水循環

在這里插入圖片描述

A detailed isometric illustration of the terrestrial hydrological cycle, featuring precipitation, surface water evaporation, groundwater flow, vegetation transpiration, and solar radiation. The diagram includes mountains, rivers, forests, and clouds. The sun is depicted as the primary energy source driving evaporation and transpiration. The background is white, emphasizing the interconnected processes of the water cycle.

【ChatGPT】
在這里插入圖片描述
【Midjourney】
在這里插入圖片描述

土壤剖面1

在這里插入圖片描述

A detailed illustration of a soil profile featuring three distinct layers. The top layer shows plants with green leaves and roots extending into the soil. The soil layers are depicted with different textures and colors, ranging from dark, organic-rich topsoil to lighter subsoil and coarse, rocky material at the bottom. The roots penetrate through all three layers, connecting the vegetation to the soil. The background is white, emphasizing the soil structure and plant interaction.

【ChatGPT】
在這里插入圖片描述
【Midjourney】
在這里插入圖片描述

土壤剖面2

在這里插入圖片描述

A detailed isometric illustration of soil layers from top to bottom, including humus, topsoil, subsoil, weathered rock fragments, and bedrock. The surface features a tree with deep roots extending into the subsoil and grass with shallow roots confined to the humus layer. Each soil layer is distinctly colored and textured to show its composition. The background is white, emphasizing the stratification and root interactions.

【ChatGPT】
在這里插入圖片描述
【Midjourney】
在這里插入圖片描述

土壤質地方塊

在這里插入圖片描述

An educational illustration of three vertical rectangular prisms placed side by side, representing different soil textures. The left prism shows salinized soil with a pale crust and dry, dead grass on top. The middle prism depicts fertile brown-yellow soil with green herbaceous vegetation on the surface. The right prism represents arid, cracked soil with visible fractures and no vegetation. The design is minimalistic, focusing on the textures and colors of the soil, with a clean white background.

在這里插入圖片描述
在這里插入圖片描述

孔隙含水介質

在這里插入圖片描述

Porous Aquifer Medium
A simplified 3D illustration of a porous aquifer medium. The diagram shows a cube filled with interconnected pores and solid grains, representing the spaces where water can flow and be stored. The background is neutral blue to emphasize the porous structure and the contrast between the solid material and the voids. Each pore is highlighted to show water retention and movement potential.

【ChatGPT】
在這里插入圖片描述
【Midjourney】
在這里插入圖片描述

油氣開采

在這里插入圖片描述

A detailed cross-sectional illustration of an oil and gas extraction site. The surface includes a drilling rig, storage tanks, and infrastructure set on a desert landscape. Below the surface, multiple geological layers are shown, with a drilling well extending through the layers to reach the oil and gas reservoir. The reservoir is depicted as a black layer trapped between impermeable rock layers. The background is white, emphasizing the subsurface and drilling process.

【ChatGPT】
在這里插入圖片描述
【Midjourney】
在這里插入圖片描述

衛星遙感

Satellite remote sensing,real photo

【ChatGPT】
在這里插入圖片描述
【Midjourney】
在這里插入圖片描述

水庫

在這里插入圖片描述

an illustration showcasing watershed water resource management. A dam intercepts the river, storing water in an upstream reservoir. The reservoir’s bottom consists of bedrock, and water is regulated through the dam’s gates before being discharged into the downstream plain area.

【ChatGPT】
在這里插入圖片描述

【Midjourney】在這里插入圖片描述

地面沉降

land subsidence caused by excessive groundwater extraction. The image features a coastal area with tilted and sinking buildings, cracked ground, and a lowered surface layer. Arrows indicate the upward flow of water from underground, and the subsurface layers show depleted aquifers. The background includes a mix of land and water, emphasizing the environmental impacts of over-extraction on urban and rural landscapes.

【ChatGPT】
在這里插入圖片描述
【Midjourney】
在這里插入圖片描述


三、出圖效果對比

(1)出圖效果對比
Midjourney的效果整體比ChatGPT更好,速度更快,更加方便二次修改
(2)成本對比
官方售價均在人民幣100元左右,二次市場的共享賬號方面,Midjourney略便宜。
【ChatGPT會員】
在這里插入圖片描述
【Midjourney會員】
在這里插入圖片描述
(3)風格差異
ChatGPT的繪圖風格是綺麗絢爛的夢,通常具有較高的飽和度,色彩鮮明、對比度較強
在這里插入圖片描述
MidJourney的繪圖風格則相對柔和,飽和度較低,色調更為平衡一些
在這里插入圖片描述


參考鏈接
1.[60張高清地質用圖] https://mp.weixin.qq.com/s/spozxpFLvkstA7wZOZKAsA

本文來自互聯網用戶投稿,該文觀點僅代表作者本人,不代表本站立場。本站僅提供信息存儲空間服務,不擁有所有權,不承擔相關法律責任。
如若轉載,請注明出處:http://www.pswp.cn/web/65434.shtml
繁體地址,請注明出處:http://hk.pswp.cn/web/65434.shtml
英文地址,請注明出處:http://en.pswp.cn/web/65434.shtml

如若內容造成侵權/違法違規/事實不符,請聯系多彩編程網進行投訴反饋email:809451989@qq.com,一經查實,立即刪除!

相關文章

【微服務】6、限流 熔斷

線程隔離與容錯處理 本視頻主要講解了在購物車業務中,因商品微服務響應慢導致的問題及解決方案,重點介紹了線程隔離后查詢購物車業務不可用的情況,以及如何通過Fallback邏輯進行緩解,包括配置Feign調用為簇點資源、添加Fallback邏…

springboot+vue使用easyExcel實現導出功能

vue部分 // 導出計算數據exportDataHandle(id) {this.$http({url: this.$http.adornUrl(/xxx/xxx/exportCalDataExcel),method: post,data: this.$http.adornData({id: id}),responseType: blob, // 重要:告訴axios我們希望接收二進制數據}).then(({data}) > {c…

25年01月HarmonyOS應用基礎認證最新題庫

判斷題 “一次開發,多端部署”指的是一個工程,一次開發上架,多端按需部署。為了實現這一目的,HarmonyOS提供了多端開發環境,多端開發能力以及多端分發機制。 答案:正確 《鴻蒙生態應用開發白皮書》全面闡釋…

ELK實戰(最詳細)

一、什么是ELK ELK是三個產品的簡稱:ElasticSearch(簡稱ES) 、Logstash 、Kibana 。其中: ElasticSearch:是一個開源分布式搜索引擎Logstash :是一個數據收集引擎,支持日志搜集、分析、過濾,支持大量數據…

Dubbo-筆記隨記一

一、實戰 1 . Springboot整合 1.1 服務提供者 1.1.1 依賴 <dependency><groupId>org.apache.dubbo</groupId><artifactId>dubbo-spring-boot-starter</artifactId><version>3.2.10</version></dependency><dependency&g…

git tag

文章目錄 1.簡介2.格式3.選項4.示例參考文獻 1.簡介 同大多數 VCS 一樣&#xff0c;Git 也可以對某一時間點的版本打上標簽&#xff0c;用于版本的發布管理。 一個版本發布時&#xff0c;我們可以為當前版本打上類似于 v.1.0.1、v.1.0.2 這樣的 Tag。一個 Tag 指向一個 Commi…

ETCD滲透利用指南

目錄 未指定使用put操作報錯 未指定操作版本使用get報錯 首先etcd分為兩個版本v2和v3&#xff0c;不同的API結果無論是訪問URL還是使用etcdctl進行通信&#xff0c;都會導致問題&#xff0c;例如使用etcdctl和v3進行通信&#xff0c;如果沒有實名ETCDCTL_API3指定API版本會直接…

使用VUE3創建個人靜態主頁

使用VUE3創建個人靜態主頁 &#x1f31f; 前言&#x1f60e;體驗&#x1f528; 具體實現? 核心功能&#x1f3d7;? 項目結構&#x1f680; 用這個項目部署 Git Page &#x1f4d6; 參考 &#x1f31f; 前言 作為開發者或者內容創作者&#xff0c;我們經常需要創建靜態網頁&a…

Lua語言中常用的字符串操作函數

string.sub(s, i, j) 功能: 截取字符串 s 中從位置 i 到位置 j 的子字符串。 local s "Hello, Lua!" print(string.sub(s, 1, 5)) -- 輸出 "Hello" print(string.sub(s, 8, 11)) -- 輸出 "Lua!" string.len(s) 功能&#xff1a;將字符串長度…

llm大模型學習

llm大模型 混合專家模型&#xff08;MoE&#xff09;MoE結構路由router專家expertSwitch Transformer的典型MOE模型最后MoE總結 混合專家模型&#xff08;MoE&#xff09; 模型規模是提升LLM大語言模型性能的關鍵因素&#xff0c;但也會增加計算成本。Mixture of Experts (MoE…

Linux入門攻堅——43、keepalived入門-1

Linux Cluster&#xff08;Linux集群的類型&#xff09;&#xff1a;LB、HA、HPC&#xff0c;分別是負載均衡集群、高可用性集群、高性能集群。 LB&#xff1a;lvs&#xff0c;nginx HA&#xff1a;keepalived&#xff0c;heartbeat&#xff0c;corosync&#xff0c;cman HP&am…

HTML5 動畫效果:淡入淡出(Fade In/Out)詳解

HTML5 動畫效果&#xff1a;淡入淡出&#xff08;Fade In/Out&#xff09;詳解 淡入淡出&#xff08;Fade In/Out&#xff09;是一種常見的動畫效果&#xff0c;使元素逐漸顯現或消失&#xff0c;增強用戶體驗。以下是淡入淡出的詳細介紹及實現示例。 1. 淡入淡出的特點 平滑…

YOLOv8/YOLOv11改進 添加CBAM、GAM、SimAM、EMA、CAA、ECA、CA等多種注意力機制

目錄 前言 CBAM GAM SimAM EMA CAA ECA CA 添加方法 YAML文件添加 使用改進訓練 前言 本篇文章將為大家介紹Ultralytics/YOLOv8/YOLOv11中常用注意力機制的添加&#xff0c;可以滿足一些簡單的漲點需求。本文僅寫方法&#xff0c;原理不多講解&#xff0c;需要可跳…

Go語言的 的多態性(Polymorphism)基礎知識

Go語言的多態性&#xff08;Polymorphism&#xff09;基礎知識 在編程語言中&#xff0c;多態性是一個核心概念&#xff0c;它允許同一接口被不同的數據類型所實現&#xff0c;從而在不影響代碼結構的情況下增強代碼的靈活性和可擴展性。在Go語言中&#xff0c;多態性通過接口…

nginx運行之后顯示的是上一個項目,如何解決

重啟 Nginx 使配置生效 修改 Nginx 配置后&#xff0c;你需要重新加載或重啟 Nginx&#xff0c;以使配置生效。執行以下命令&#xff1a; sudo nginx -t # 測試配置是否正確 sudo systemctl restart nginx # 重啟 Nginxbash 復制代碼 檢查瀏覽器緩存 瀏覽器可能緩存了舊…

與 Oracle Dataguard 相關的進程及作用分析

與 Oracle Dataguard 相關的進程及作用分析 目錄 與 Oracle Dataguard 相關的進程及作用分析與 Oracle Dataguard 相關的進程及作用分析一、主庫的進程1、LGWR 進程2、ARCH進程3、LNS 進程 二、備庫的進程1、RFS 進程2、ARCH3、MRP&#xff08;Managed Recovery Process&#x…

【C語言】_指針與數組

目錄 1. 數組名的含義 1.1 數組名與數組首元素的地址的聯系 1.3 數組名與首元素地址相異的情況 2. 使用指針訪問數組 3. 一維數組傳參的本質 3.1 代碼示例1&#xff1a;函數體內計算sz&#xff08;sz不作實參傳遞&#xff09; 3.2 代碼示例2&#xff1a;sz作為實參傳遞 3…

解決“KEIL5軟件模擬仿真無法打印浮點數”之問題

在沒有外部硬件支持時&#xff0c;我們會使用KEIL5軟件模擬仿真&#xff0c;這是是仿真必須要掌握的技巧。 1、點擊“Project”&#xff0c;然后點擊“Options for target 項目名字”&#xff0c;點擊“Device”,選擇CPU型號。 2、點擊“OK” 3、點擊“Target”,勾選“Use Mi…

donet (MVC)webAPI 的接受json 的操作

直接用對象來進行接收&#xff0c;這個方法還不錯的。 public class BangdingWeiguiJiluController : ApiController{/// <summary>/// Json數據錄入錯誤信息/// </summary>/// <param name"WeiguiInfos"></param>/// <returns></r…

設計模式與游戲完美開發(3)

更多內容可以瀏覽本人博客&#xff1a;https://azureblog.cn/ &#x1f60a; 該文章主體內容來自《設計模式與游戲完美開發》—蔡升達 第二篇 基礎系統 第五章 獲取游戲服務的唯一對象——單例模式&#xff08;Singleton&#xff09; 游戲實現中的唯一對象 在游戲開發過程中…