主頁 > 軟體設計 > 新年將至, 程式員如何以代碼送出新春祝福

新年將至, 程式員如何以代碼送出新春祝福

2021-02-08 14:33:32 軟體設計

導讀:農歷新年將至,祝福的話匯成千言萬語都寄托在賀卡之中,也許今年你受到了很多的挫折,又或者是順順利利度過了一年,但不管怎么樣,不管是哭與笑,人生的年輪都已經轉過了一圈,我們唯有繼續向前走,不要回頭,未來的自己取決于現在的自己,有時候一句不經意的問候,一句小小的祝福都能讓自己身心雀躍,獲得短暫的拯救,因此,在即將到來的農歷新年之際,程式員們以代碼作為載體,以祝福作為載物,送給自己或者送給重要的人,亦或是那憧憬的遠方,

各路工程師請在評論區各顯神通吧,以代碼的方式寫下新春祝福語,

目錄

前端工程師:

linux工程師

NCL工程師

HarmonyOS

其他工程師

java回圈工程師收尾


前端工程師:

<!DOCTYPE html>
<html>
<head>
    <title>孫叫獸的博客-新年快樂</title>
</head>
<style type="text/css">
body {
    /* 背景顏色*/
    background-color: #c6070c;
    /* 字體顏色 */
    color: #ffe392;
    /* 文字居中 */
    text-align: center;
}
table {
    padding-top: 100px;
    /* 居中 */
    margin: auto;
    /* 寬比例 */
    width: 50%;
}
.pinyin {
    height: 20px;
    /* 字母間距 */
    letter-spacing: 3px;
    font-weight: 400;
}
td {
    font-size: 158px;
    text-align: center;
    font-weight: 700;
    padding: 0px;
}
h2 {
    margin-top: 15px;
    margin-bottom: 100px;
    font-size: 38px;
    text-transform: uppercase;
    font-weight: 700;
    word-spacing: 5px;
}
p {
    font-weight: 700;
    letter-spacing: 1px;
    word-spacing: 2px;
}
button {
    background-color: #ef941a;
    color: #fffbe2;
    width: 200px;
    position: relative;
    border-radius: 5px;
    margin: 0;
    padding: 0;
    line-height: 0.5;
    cursor: pointer;
    border: none;
    outline: none;
    font-size: 16px;
    text-transform: uppercase;
    letter-spacing: 1px;
}
button:hover,
button:focus {
    background-color: #efa134;
}
button:active {
    transform: translate(0px, 2px);
    -webkit-transform: translate(0px, 2px);
}
</style>
<body>

<table>
    <tr>
        <th class="pinyin" id="pinyin1">xīn</th>
        <th class="pinyin" id="pinyin2">nián</th>
        <th class="pinyin" id="pinyin3">kuài</th>
        <th class="pinyin" id="pinyin4">lè</th>
    </tr>
    <tr>
        <td id="jeskson1">新</td>
        <td id="jeskson2">年</td>
        <td id="jeskson3">快</td>
        <td id="jeskson4">樂</td>
    </tr>
</table>

<h2 id="dadaEnglish">(新年快樂)</h2>

<button type="button" id="button">
    <p>新年現金</p>
</button>

<script type="text/javascript">
var pinyin1 = document.getElementById("pinyin1");
var pinyin2 = document.getElementById("pinyin2");
var pinyin3 = document.getElementById("pinyin3");
var pinyin4 = document.getElementById("pinyin4");

var jeskson1 = document.getElementById("jeskson1");
var jeskson2 = document.getElementById("jeskson2");
var jeskson3 = document.getElementById("jeskson3");
var jeskson4 = document.getElementById("jeskson4");

var dadaEnglish = document.getElementById("dadaEnglish");

var button = document.getElementById("button");
var random = Math.random();

var p1 = [
    "xīn",
    "gōng",
    "dà",
    "wàn",
    "nián",
    "shēn",
    "xīn",
    "gōng"
];

var p2 = [
    "nián",
    "xǐ",
    "jí",
    "shì",
    "nián",
    "tǐ",
    "xiǎng",
    "hè"
];

var p3 = [
    "kuài",
    "fā",
    "dà",
    "rú",
    "yǒu",
    "jiàn",
    "shì",
    "xīn"
];

var p4 = [
    "lè",
    "cái",
    "lì",
    "yì",
    "yú",
    "kāng",
    "chéng",
    "xǐ"
];

var dadasC1 = [
    "新",
    "恭",
    "大",
    "萬",
    "年",
    "身",
    "心",
    "恭"
];

var dadasC2 = [
    "年",
    "喜",
    "吉",
    "事",
    "年",
    "體",
    "想",
    "賀"
];

var dadasC3 = [
    "快",
    "發",
    "大",
    "如",
    "有",
    "健",
    "事",
    "新"
];

var dadasC4 = [
    "樂",
    "財",
    "利",
    "意",
    "餘",
    "康",
    "成",
    "禧"
];
var dadasE = [
    "(新年快樂)",
    "(祝賀你的成功)",
    "(吉星高照)",
    "(愿一萬件事都按你的愿望去做嗎)",
    "(每一年都比你需要的多)",
    "(祝您身體健康)",
    "(愿你心想事成)",
    "(恭賀新禧)"
];
pinyin1.textContent = p1[Math.floor(random * p1.length)];
pinyin2.textContent = p2[Math.floor(random * p2.length)];
pinyin3.textContent = p3[Math.floor(random * p3.length)];
pinyin4.textContent = p4[Math.floor(random * p4.length)];
jeskson1.textContent = dadasC1[Math.floor(random * dadasC1.length)];
jeskson2.textContent = dadasC2[Math.floor(random * dadasC2.length)];
jeskson3.textContent = dadasC3[Math.floor(random * dadasC3.length)];
jeskson4.textContent = dadasC4[Math.floor(random * dadasC4.length)];
dadaEnglish.textContent = dadasE[Math.floor(random * dadasE.length)];
var onClick = function() {
    var random = Math.random();
    pinyin1.textContent = p1[Math.floor(random * p1.length)];
    pinyin2.textContent = p2[Math.floor(random * p2.length)];
    pinyin3.textContent = p3[Math.floor(random * p3.length)];
    pinyin4.textContent = p4[Math.floor(random * p4.length)];
    jeskson1.textContent = dadasC1[Math.floor(random * dadasC1.length)];
    jeskson2.textContent = dadasC2[Math.floor(random * dadasC2.length)];
    jeskson3.textContent = dadasC3[Math.floor(random * dadasC3.length)];
    jeskson4.textContent = dadasC4[Math.floor(random * dadasC4.length)];
    dadaEnglish.textContent = dadasE[Math.floor(random * dadasE.length)];
}

button.addEventListener("click", onClick);
</script>
</body>
</html>

效果圖:

效果圖:

<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        body {
            grid-template: 3em/3em;
            place-content: center;
            overflow: hidden;
            margin: 0;
            height: 100vh;
            background: #262626;
            font: 20vmin/1 lalezar, sans-serif;
            filter: drop-shadow(2px 2px 5px rgba(0, 0, 0, 0.5));
        }

        body,
        body *,
        body ::before,
        body ::after {
            display: grid;
            grid-area: 1/1;
        }

        .scene {
            overflow: hidden;
            clip-path: inset(0 round 5px);
            filter: contrast(0.85);
        }

        .scene::before {
            background: linear-gradient(90deg, #314065, #146a7c, #f0ab3d, #c271b4, #c20d90);
            content: "";
        }

        .rotor {
            place-self: center;
            width: 150%;
            height: 150%;
            grid-template-rows: 1fr 1fr;
            mix-blend-mode: multiply;
            animation: rotz 4s ease-in infinite;
        }

        @keyframes rotz {

            41%,
            50% {
                transform: rotate(0.5turn);
            }

            91%,
            100% {
                transform: rotate(1turn);
            }
        }

        .year {
            --i: 1;
            --not-i: calc(1 - var(--i));
            --not-k: calc(1 - var(--k));
            overflow: hidden;
            transform-origin: 50% 100%;
            transform: rotate(calc(var(--k)*.5turn));
            background: hsla(0, 0%, calc(var(--k)*100%), var(--i));
            color: hsla(0, 0%, calc(var(--not-k)*100%), var(--i));
            text-shadow: 0 0 calc(var(--not-i)*19px) hsl(0, 0%, calc(var(--not-k)*100%));
            text-decoration: none;
        }

        [aria-hidden=true] {
            --i: 0;
        }

        del {
            --k: 0;
            mix-blend-mode: screen;
        }

        ins {
            --k: 1;
            mix-blend-mode: multiply;
        }

        time {
            place-self: end center;
            display: flex;
            align-items: baseline;
            padding: 0 0.25em;
            height: 1.5em;
            background: inherit;
            animation: move 4s ease-in infinite, blob calc(var(--i)*2s) ease-out infinite alternate;
            animation-delay: calc(var(--k)*-2s);
        }

        time::before,
        time::after {
            display: grid;
            align-items: end;
            height: 100%;
            content: "";
        }

        @keyframes move {

            41%,
            50% {
                transform: translatey(calc(1ch + 19px));
            }

            0%,
            91%,
            100% {
                transform: translatey(1px);
            }
        }

        @keyframes blob {

            82%,
            100% {
                filter: blur(13px) contrast(39);
            }
        }
    </style>
</head>

<body>
    <section class="scene">
        <div class="rotor">
            <del class="year" aria-hidden="true">
                <time datetime="2020">新年</time>
            </del><ins class="year" aria-hidden="true">
                <time datetime="2021">快樂</time></ins>
            <del class="year">
                <time datetime="2020">新年</time>
            </del><ins class="year">
                <time datetime="2021">快樂</time></ins>
        </div>
    </section>
</body>

</html>

linux工程師

# 下載
yum install -y figlet
# 輸出
figlet happy new year!

效果圖:

NCL工程師

;*************************************************
; Happy_new_year_2021.ncl
;************************************************
;
; Concepts illustrated:
;   - Print 
;
; These files are loaded by default in NCL V6.2.0 and newer
; load "$NCARG_ROOT/lib/ncarg/nclscripts/csm/gsn_code.ncl"
; load "$NCARG_ROOT/lib/ncarg/nclscripts/csm/gsn_csm.ncl"
;************************************************
begin
;************************************************
print("Happy New Year!")
print("I wish you all Good luck in the Year of the Ox!")
print("Wishing the Tencent Cloud Community the best of luck in 2021!")
print("------------ from Meteorologist")
;************************************************
end
;************************************************

HarmonyOS

import ohos.aafwk.ability.AbilitySlice;
import ohos.aafwk.content.Intent;
import ohos.agp.components.Button;
import ohos.agp.components.Component;
import ohos.agp.components.DirectionalLayout;
import ohos.hiviewdfx.HiLog;
import ohos.hiviewdfx.HiLogLabel;

public class MainAbilitySlice extends AbilitySlice {

    private static final HiLogLabel LABEL = new HiLogLabel(HiLog.LOG_APP, 0x00201, "云+社區");

    @Override
    public void onStart(Intent intent) {
        super.onStart(intent);

        DirectionalLayout directionalLayout = new DirectionalLayout(getContext());
        Button button = new Button(getContext());
        button.setText("新年快樂,牛年大吉!");
        button.setTextSize(200);

        if (button != null) {
            button.setClickedListener(new Component.ClickedListener() {
                @Override
                public void onClick(Component component) {
                    HiLog.info(LABEL, "云+社區,祝所有人新年快樂,2021 我們一起加油!!");
                }
            });
        }

        directionalLayout.addComponent(button);
        super.setUIContent(directionalLayout);
    }
}

其他工程師

C++ -> 

cout<<"祝大家新春快樂!!!";

C-> 

printf("祝大家新春快樂!!!");

Foxpro -> 

?【祝大家新春快樂!!!】

html -> 

<br/>☆祝大家新春快樂!!!☆<br/>

iapp -> 

tw("祝大家新春快樂!!!")

java -> 

System.out.println("祝大家新春快樂!!!");

JScript -> 

alert("祝大家新春快樂!!!")

Jscript -> 

document.write("祝大家新春快樂!!!")

AS -> 

Alert.show("祝大家新春快樂!!!");

Asp -> 

Response.Write"祝大家新春快樂!!!"

C#:System.Console.WriteLine("祝大家新春快樂!!!!")

perl -> 

print'祝大家新春快樂!!!'

COBOL -> 

DISPLAY'祝大家新春快樂!!!

Delphi -> 

ShowMessage('祝大家新春快樂!!!');

DOS批處理 -> 

echo祝大家新春快樂!!!

PHP -> 

echo"祝大家新春快樂!!!";

powerBuilder -> 

messagebox("祝大家新春快樂!!!")

Python -> 

print("祝大家新春快樂!!!")

QBasic -> 

Print"祝大家新春快樂!!!"

shell -> 

echo祝大家新春快樂!!!

VB -> 

Print"祝大家新春快樂!!!"

VBScript -> 

MsgBox"祝大家新春快樂!!!"

VC -> 

MessageBox("祝大家新春快樂!!!");

易語言 -> 

除錯輸出(“祝大家新春快樂!!!”)

java回圈工程師收尾

 public static void main(String[] args) {
        LocalDate now = LocalDate.now();

        int year = now.getYear();
        int dayOfYear =now.lengthOfYear();
        System.out.println("dayOfYear = " + dayOfYear);
        for (int i = 1; i <= dayOfYear ; i++) {
            System.out.println(year+"年,第"+i+"天快樂!");
        }
    }

2021年,快樂每一天!

2021年,第1天快樂!

2021年,第2天快樂!

2021年,第3天快樂!

2021年,第4天快樂!

2021年,第5天快樂!

2021年,第6天快樂!

2021年,第7天快樂!

2021年,第8天快樂!

2021年,第9天快樂!

2021年,第10天快樂!

2021年,第11天快樂!

2021年,第12天快樂!

2021年,第13天快樂!

2021年,第14天快樂!

2021年,第15天快樂!

2021年,第16天快樂!

2021年,第17天快樂!

2021年,第18天快樂!

2021年,第19天快樂!

2021年,第20天快樂!

2021年,第21天快樂!

2021年,第22天快樂!

2021年,第23天快樂!

2021年,第24天快樂!

2021年,第25天快樂!

2021年,第26天快樂!

2021年,第27天快樂!

2021年,第28天快樂!

2021年,第29天快樂!

2021年,第30天快樂!

2021年,第31天快樂!

2021年,第32天快樂!

2021年,第33天快樂!

2021年,第34天快樂!

2021年,第35天快樂!

2021年,第36天快樂!

2021年,第37天快樂!

2021年,第38天快樂!

2021年,第39天快樂!

2021年,第40天快樂!

2021年,第41天快樂!

2021年,第42天快樂!

2021年,第43天快樂!

2021年,第44天快樂!

2021年,第45天快樂!

2021年,第46天快樂!

2021年,第47天快樂!

2021年,第48天快樂!

2021年,第49天快樂!

2021年,第50天快樂!

2021年,第51天快樂!

2021年,第52天快樂!

2021年,第53天快樂!

2021年,第54天快樂!

2021年,第55天快樂!

2021年,第56天快樂!

2021年,第57天快樂!

2021年,第58天快樂!

2021年,第59天快樂!

2021年,第60天快樂!

2021年,第61天快樂!

2021年,第62天快樂!

2021年,第63天快樂!

2021年,第64天快樂!

2021年,第65天快樂!

2021年,第66天快樂!

2021年,第67天快樂!

2021年,第68天快樂!

2021年,第69天快樂!

2021年,第70天快樂!

2021年,第71天快樂!

2021年,第72天快樂!

2021年,第73天快樂!

2021年,第74天快樂!

2021年,第75天快樂!

2021年,第76天快樂!

2021年,第77天快樂!

2021年,第78天快樂!

2021年,第79天快樂!

2021年,第80天快樂!

2021年,第81天快樂!

2021年,第82天快樂!

2021年,第83天快樂!

2021年,第84天快樂!

2021年,第85天快樂!

2021年,第86天快樂!

2021年,第87天快樂!

2021年,第88天快樂!

2021年,第89天快樂!

2021年,第90天快樂!

2021年,第91天快樂!

2021年,第92天快樂!

2021年,第93天快樂!

2021年,第94天快樂!

2021年,第95天快樂!

2021年,第96天快樂!

2021年,第97天快樂!

2021年,第98天快樂!

2021年,第99天快樂!

2021年,第100天快樂!

2021年,第101天快樂!

2021年,第102天快樂!

2021年,第103天快樂!

2021年,第104天快樂!

2021年,第105天快樂!

2021年,第106天快樂!

2021年,第107天快樂!

2021年,第108天快樂!

2021年,第109天快樂!

2021年,第110天快樂!

2021年,第111天快樂!

2021年,第112天快樂!

2021年,第113天快樂!

2021年,第114天快樂!

2021年,第115天快樂!

2021年,第116天快樂!

2021年,第117天快樂!

2021年,第118天快樂!

2021年,第119天快樂!

2021年,第120天快樂!

2021年,第121天快樂!

2021年,第122天快樂!

2021年,第123天快樂!

2021年,第124天快樂!

2021年,第125天快樂!

2021年,第126天快樂!

2021年,第127天快樂!

2021年,第128天快樂!

2021年,第129天快樂!

2021年,第130天快樂!

2021年,第131天快樂!

2021年,第132天快樂!

2021年,第133天快樂!

2021年,第134天快樂!

2021年,第135天快樂!

2021年,第136天快樂!

2021年,第137天快樂!

2021年,第138天快樂!

2021年,第139天快樂!

2021年,第140天快樂!

2021年,第141天快樂!

2021年,第142天快樂!

2021年,第143天快樂!

2021年,第144天快樂!

2021年,第145天快樂!

2021年,第146天快樂!

2021年,第147天快樂!

2021年,第148天快樂!

2021年,第149天快樂!

2021年,第150天快樂!

2021年,第151天快樂!

2021年,第152天快樂!

2021年,第153天快樂!

2021年,第154天快樂!

2021年,第155天快樂!

2021年,第156天快樂!

2021年,第157天快樂!

2021年,第158天快樂!

2021年,第159天快樂!

2021年,第160天快樂!

2021年,第161天快樂!

2021年,第162天快樂!

2021年,第163天快樂!

2021年,第164天快樂!

2021年,第165天快樂!

2021年,第166天快樂!

2021年,第167天快樂!

2021年,第168天快樂!

2021年,第169天快樂!

2021年,第170天快樂!

2021年,第171天快樂!

2021年,第172天快樂!

2021年,第173天快樂!

2021年,第174天快樂!

2021年,第175天快樂!

2021年,第176天快樂!

2021年,第177天快樂!

2021年,第178天快樂!

2021年,第179天快樂!

2021年,第180天快樂!

2021年,第181天快樂!

2021年,第182天快樂!

2021年,第183天快樂!

2021年,第184天快樂!

2021年,第185天快樂!

2021年,第186天快樂!

2021年,第187天快樂!

2021年,第188天快樂!

2021年,第189天快樂!

2021年,第190天快樂!

2021年,第191天快樂!

2021年,第192天快樂!

2021年,第193天快樂!

2021年,第194天快樂!

2021年,第195天快樂!

2021年,第196天快樂!

2021年,第197天快樂!

2021年,第198天快樂!

2021年,第199天快樂!

2021年,第200天快樂!

2021年,第201天快樂!

2021年,第202天快樂!

2021年,第203天快樂!

2021年,第204天快樂!

2021年,第205天快樂!

2021年,第206天快樂!

2021年,第207天快樂!

2021年,第208天快樂!

2021年,第209天快樂!

2021年,第210天快樂!

2021年,第211天快樂!

2021年,第212天快樂!

2021年,第213天快樂!

2021年,第214天快樂!

2021年,第215天快樂!

2021年,第216天快樂!

2021年,第217天快樂!

2021年,第218天快樂!

2021年,第219天快樂!

2021年,第220天快樂!

2021年,第221天快樂!

2021年,第222天快樂!

2021年,第223天快樂!

2021年,第224天快樂!

2021年,第225天快樂!

2021年,第226天快樂!

2021年,第227天快樂!

2021年,第228天快樂!

2021年,第229天快樂!

2021年,第230天快樂!

2021年,第231天快樂!

2021年,第232天快樂!

2021年,第233天快樂!

2021年,第234天快樂!

2021年,第235天快樂!

2021年,第236天快樂!

2021年,第237天快樂!

2021年,第238天快樂!

2021年,第239天快樂!

2021年,第240天快樂!

2021年,第241天快樂!

2021年,第242天快樂!

2021年,第243天快樂!

2021年,第244天快樂!

2021年,第245天快樂!

2021年,第246天快樂!

2021年,第247天快樂!

2021年,第248天快樂!

2021年,第249天快樂!

2021年,第250天快樂!

2021年,第251天快樂!

2021年,第252天快樂!

2021年,第253天快樂!

2021年,第254天快樂!

2021年,第255天快樂!

2021年,第256天快樂!

2021年,第257天快樂!

2021年,第258天快樂!

2021年,第259天快樂!

2021年,第260天快樂!

2021年,第261天快樂!

2021年,第262天快樂!

2021年,第263天快樂!

2021年,第264天快樂!

2021年,第265天快樂!

2021年,第266天快樂!

2021年,第267天快樂!

2021年,第268天快樂!

2021年,第269天快樂!

2021年,第270天快樂!

2021年,第271天快樂!

2021年,第272天快樂!

2021年,第273天快樂!

2021年,第274天快樂!

2021年,第275天快樂!

2021年,第276天快樂!

2021年,第277天快樂!

2021年,第278天快樂!

2021年,第279天快樂!

2021年,第280天快樂!

2021年,第281天快樂!

2021年,第282天快樂!

2021年,第283天快樂!

2021年,第284天快樂!

2021年,第285天快樂!

2021年,第286天快樂!

2021年,第287天快樂!

2021年,第288天快樂!

2021年,第289天快樂!

2021年,第290天快樂!

2021年,第291天快樂!

2021年,第292天快樂!

2021年,第293天快樂!

2021年,第294天快樂!

2021年,第295天快樂!

2021年,第296天快樂!

2021年,第297天快樂!

2021年,第298天快樂!

2021年,第299天快樂!

2021年,第300天快樂!

2021年,第301天快樂!

2021年,第302天快樂!

2021年,第303天快樂!

2021年,第304天快樂!

2021年,第305天快樂!

2021年,第306天快樂!

2021年,第307天快樂!

2021年,第308天快樂!

2021年,第309天快樂!

2021年,第310天快樂!

2021年,第311天快樂!

2021年,第312天快樂!

2021年,第313天快樂!

2021年,第314天快樂!

2021年,第315天快樂!

2021年,第316天快樂!

2021年,第317天快樂!

2021年,第318天快樂!

2021年,第319天快樂!

2021年,第320天快樂!

2021年,第321天快樂!

2021年,第322天快樂!

2021年,第323天快樂!

2021年,第324天快樂!

2021年,第325天快樂!

2021年,第326天快樂!

2021年,第327天快樂!

2021年,第328天快樂!

2021年,第329天快樂!

2021年,第330天快樂!

2021年,第331天快樂!

2021年,第332天快樂!

2021年,第333天快樂!

2021年,第334天快樂!

2021年,第335天快樂!

2021年,第336天快樂!

2021年,第337天快樂!

2021年,第338天快樂!

2021年,第339天快樂!

2021年,第340天快樂!

2021年,第341天快樂!

2021年,第342天快樂!

2021年,第343天快樂!

2021年,第344天快樂!

2021年,第345天快樂!

2021年,第346天快樂!

2021年,第347天快樂!

2021年,第348天快樂!

2021年,第349天快樂!

2021年,第350天快樂!

2021年,第351天快樂!

2021年,第352天快樂!

2021年,第353天快樂!

2021年,第354天快樂!

2021年,第355天快樂!

2021年,第356天快樂!

2021年,第357天快樂!

2021年,第358天快樂!

2021年,第359天快樂!

2021年,第360天快樂!

2021年,第361天快樂!

2021年,第362天快樂!

2021年,第363天快樂!

2021年,第364天快樂!

2021年,第365天快樂!

最后:祝大家 2021 新年快樂,牛年大吉,加油!

孫叫獸 CSDN認證博客專家 HTTPS Node.js JavaScript

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

標籤:其他

上一篇:服務訊息驅動:Stream

下一篇:[原創] Android應用使用藍牙通信控制車聯網設備(Kotlin實作)

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

熱門瀏覽
  • 面試突擊第一季,第二季,第三季

    第一季必考 https://www.bilibili.com/video/BV1FE411y79Y?from=search&seid=15921726601957489746 第二季分布式 https://www.bilibili.com/video/BV13f4y127ee/?spm_id_fro ......

    uj5u.com 2020-09-10 05:35:24 more
  • 第三單元作業總結

    1.前言 這應該是本學期最后一次寫作業總結了吧。總體來說,對作業的節奏也差不多掌握了,作業做起來的效率也更高了。雖然和之前的作業一樣,作業中都要用到新的知識,但是相比之前,更加懂得了如何利用工具以及資料。雖然之間卡過殼,但總體而言,這幾次作業還算完成的比較好。 2.作業程序總結 相比前兩個單元,此單 ......

    uj5u.com 2020-09-10 05:35:41 more
  • 北航OO(2020)第四單元博客作業暨課程總結博客

    北航OO(2020)第四單元博客作業暨課程總結博客 本單元作業的架構設計 在本單元中,由于UML圖具有比較清晰的樹形結構,因此我對其中需要進行查詢操作的元素進行了包裝,在樹的父節點中存盤所有孩子的參考。考慮到性能問題,我采用了快取機制,一次查詢后盡可能快取已經遍歷過的資訊,以減少遍歷次數。 本單元我 ......

    uj5u.com 2020-09-10 05:35:48 more
  • BUAA_OO_第四單元

    一、UML決議器設計 ? 先看下題目:第四單元實作一個基于JDK 8帶有效性檢查的UML(Unified Modeling Language)類圖,順序圖,狀態圖分析器 MyUmlInteraction,實際上我們要建立一個有向圖模型,UML中的物件(元素)可能與同級元素連接,也可與低級元素相連形成 ......

    uj5u.com 2020-09-10 05:35:54 more
  • 6.1邏輯運算子

    邏輯運算子 1. && 短路與 運算式1 && 運算式2 01.運算式1為true并且運算式2也為true 整體回傳為true 02.運算式1為false,將不會執行運算式2 整體回傳為false 03.只要有一個運算式為false 整體回傳為false 2. || 短路或 運算式1 || 運算式2 ......

    uj5u.com 2020-09-10 05:35:56 more
  • BUAAOO 第四單元 & 課程總結

    1. 第四單元:StarUml檔案決議 本單元采用了圖模型決議UML。 UML檔案可以抽象為圖、子圖、邊的邏輯結構。 在實作中,圖的節點包括類、介面、屬性,子圖包括狀態圖、順序圖等。 采用了三次遍歷UML元素的方法建圖,第一遍遍歷建點,第二、三次遍歷設定屬性、連邊,實作圖物件的初始化。這里借鑒了一些 ......

    uj5u.com 2020-09-10 05:36:06 more
  • 談談我對C# 多型的理解

    面向物件三要素:封裝、繼承、多型。 封裝和繼承,這兩個比較好理解,但要理解多型的話,可就稍微有點難度了。今天,我們就來講講多型的理解。 我們應該經常會看到面試題目:請談談對多型的理解。 其實呢,多型非常簡單,就一句話:呼叫同一種方法產生了不同的結果。 具體實作方式有三種。 一、多載 多載很簡單。 p ......

    uj5u.com 2020-09-10 05:36:09 more
  • Python 資料驅動工具:DDT

    背景 python 的unittest 沒有自帶資料驅動功能。 所以如果使用unittest,同時又想使用資料驅動,那么就可以使用DDT來完成。 DDT是 “Data-Driven Tests”的縮寫。 資料:http://ddt.readthedocs.io/en/latest/ 使用方法 dd. ......

    uj5u.com 2020-09-10 05:36:13 more
  • Python里面的xlrd模塊詳解

    那我就一下面積個問題對xlrd模塊進行學習一下: 1.什么是xlrd模塊? 2.為什么使用xlrd模塊? 3.怎樣使用xlrd模塊? 1.什么是xlrd模塊? ?python操作excel主要用到xlrd和xlwt這兩個庫,即xlrd是讀excel,xlwt是寫excel的庫。 今天就先來說一下xl ......

    uj5u.com 2020-09-10 05:36:28 more
  • 當我們創建HashMap時,底層到底做了什么?

    jdk1.7中的底層實作程序(底層基于陣列+鏈表) 在我們new HashMap()時,底層創建了默認長度為16的一維陣列Entry[ ] table。當我們呼叫map.put(key1,value1)方法向HashMap里添加資料的時候: 首先,呼叫key1所在類的hashCode()計算key1 ......

    uj5u.com 2020-09-10 05:36:38 more
最新发布
  • 【中介者設計模式詳解】C/Java/JS/Go/Python/TS不同語言實作

    * 中介者模式是一種行為型設計模式,它可以用來減少類之間的直接依賴關系,
    * 將物件之間的通信封裝到一個中介者物件中,從而使得各個物件之間的關系更加松散。
    * 在中介者模式中,物件之間不再直接相互互動,而是通過中介者來中轉訊息。 ......

    uj5u.com 2023-04-20 08:20:47 more
  • 露天煤礦現場調研和交流案例分享

    他們集團的資訊化公司及研究院在一個礦區正在做智能礦山的統一平臺的 試點,專案投資大概1億,包括了礦山的各方面的內容,顯示得我們這次交流有點多余。他們2年前開始做智能礦山的規劃,有很多煤礦行業專家的加持,他們的描述是非常完美,但是去年底應該上線的平臺,現在還沒有看到影子。他們確實有很多場景需求,但是被... ......

    uj5u.com 2023-04-20 08:20:25 more
  • 《社區人員管理》實戰案例設計&個人案例分享

    設計是一個讓人夢想成真程序,開始編碼、測驗、除錯之前進行需求分析和架構設計,才能保證關鍵方面都做正確 ......

    uj5u.com 2023-04-20 08:20:17 more
  • 軟體架構生態化-多角色交付的探索實踐

    作為一個技術架構師,不僅僅要緊跟行業技術趨勢,還要結合研發團隊現狀及痛點,探索新的交付方案。在日常中,你是否遇到如下問題 “ 業務需求排期長研發是瓶頸;非研發角色感受不到研發技改提效的變化;引入ISV 團隊又擔心質量和安全,培訓周期長“等等,基于此我們探索了一種新的技術體系及交付方案來解決如上問題。 ......

    uj5u.com 2023-04-20 08:20:10 more
  • 【中介者設計模式詳解】C/Java/JS/Go/Python/TS不同語言實作

    * 中介者模式是一種行為型設計模式,它可以用來減少類之間的直接依賴關系,
    * 將物件之間的通信封裝到一個中介者物件中,從而使得各個物件之間的關系更加松散。
    * 在中介者模式中,物件之間不再直接相互互動,而是通過中介者來中轉訊息。 ......

    uj5u.com 2023-04-20 08:19:44 more
  • 露天煤礦現場調研和交流案例分享

    他們集團的資訊化公司及研究院在一個礦區正在做智能礦山的統一平臺的 試點,專案投資大概1億,包括了礦山的各方面的內容,顯示得我們這次交流有點多余。他們2年前開始做智能礦山的規劃,有很多煤礦行業專家的加持,他們的描述是非常完美,但是去年底應該上線的平臺,現在還沒有看到影子。他們確實有很多場景需求,但是被... ......

    uj5u.com 2023-04-20 08:19:07 more
  • 《社區人員管理》實戰案例設計&個人案例分享

    設計是一個讓人夢想成真程序,開始編碼、測驗、除錯之前進行需求分析和架構設計,才能保證關鍵方面都做正確 ......

    uj5u.com 2023-04-20 08:18:57 more
  • 軟體架構生態化-多角色交付的探索實踐

    作為一個技術架構師,不僅僅要緊跟行業技術趨勢,還要結合研發團隊現狀及痛點,探索新的交付方案。在日常中,你是否遇到如下問題 “ 業務需求排期長研發是瓶頸;非研發角色感受不到研發技改提效的變化;引入ISV 團隊又擔心質量和安全,培訓周期長“等等,基于此我們探索了一種新的技術體系及交付方案來解決如上問題。 ......

    uj5u.com 2023-04-20 08:18:49 more
  • 05單件模式

    #經典的單件模式 public class Singleton { private static Singleton uniqueInstance; //一個靜態變數持有Singleton類的唯一實體。 // 其他有用的實體變數寫在這里 //構造器宣告為私有,只有Singleton可以實體化這個類! ......

    uj5u.com 2023-04-19 08:42:51 more
  • 【架構與設計】常見微服務分層架構的區別和落地實踐

    軟體工程的方方面面都遵循一個最基本的道理:沒有銀彈,架構分層模型更是如此,每一種都有各自優缺點,所以請根據不同的業務場景,并遵循簡單、可演進這兩個重要的架構原則選擇合適的架構分層模型即可。 ......

    uj5u.com 2023-04-19 08:42:41 more