粵語編程語言係乜?
佢係一門用粵語嚟同計算機溝通嘅編程語言
喺呢隻语言度,計算機可以讀明你寫嘅粵語
所以話,你可以用粵語嚟操作(虐待)計算機。
pip install cantonese
______ __ / ________ _____ / /_____ ____ ___ ________ / / / __ `/ __ \/ __/ __ \/ __ \/ _ \/ ___/ _ \ / /___/ /_/ / / / / /_/ /_/ / / / / __(__ / __/ \____/\__,_/_/ /_/\__/\____/_/ /_/\___/____/\___/ Cantonese PL Copyright (C) 2020-2024 StepfenShawn
介紹返 duck 係 乜X {
佢個老豆叫 object
佢有啲咩?? => {
性别: 公家嘢,
年龄: 私家嘢
}
佢識得 游下水 |自己| => {
畀我睇下 "Duck is swimming" 點樣先??
}
佢識得 睡下觉 |自己| => {
畀我睇下 "Duck is sleeping" 點樣先??
}
}
介紹返 myduck 係 阿->duck()
好心 |myduck -> 游下水| 啦
好心 |myduck -> 睡下觉| 啦
$ cantonese example.cantonese
Duck is swimming
Duck is sleeping