你一定需要学的VIBE CODING,零基础如何利用AI编程!----李厚辰主题讲座
By 东京人文论坛
Summary
## Key takeaways - **Vibe Coding定义**: Vibe Coding就是不会编程的人编程的方法,用自然语言让AI帮你写代码。 [00:00], [00:24] - **新闻简报自动化**: 每天用RSS处理新闻,自动翻译英文、去重、排版成Markdown,节省两个小时时间。 [00:55], [01:52] - **海报生成脚本**: 输入三个文本,脚本自动生成三张活动海报背景图,用于YouTube节目配图。 [02:18], [03:02] - **重复AI对话自动化**: AI多步骤对话可以写成脚本自动化,如输入话题自动生成10个问题并扩展研究。 [03:57], [06:42] - **免费开源工具替代**: 语音转文字用开源Whisper,文字转语音用Index TTS,避免每月付费7-20刀的网站。 [06:43], [07:54] - **工程化模块拆分**: 将任务拆成模块脚本,如新闻抓取、翻译分开,便于独立优化和更换AI模型。 [01:37], [01:40]
Topics Covered
- 不会编程者自动化日常重复
- Vibe Coding三类无限应用
- Vibe Coding非ChatGPT写答案
- 工程化拆分任务优化脚本
- 适应AI全流程重构工作
Full Transcript
今天我们 废话少说 ,今天我 们讲vi bcod ing, vibc odin g就是不 会编程的 人编程的 方法,它 用途非常 广泛,我 们就可以 先从用途
开始,但 从用途之 前,为了 判断我今 天能胡说 到什么地 步,我还 想问问, 现场有v ibco ding 经验的人 举手一下 ,已经很 多了,现 场除了v
ibco ding 以外还会 编程的人 举手一下 ,那我今 天不能胡 说了。
又不能胡 说了 对 然后这 个当然 因为我本 身也临界 于不会编 程 所以 说我的经 验可以对 于不会编 程的人更 有作用一 点 这个 Vibe Cod
ing非 常非常有 用 我觉 得大家可 以 我们 可以先b rain stor m一下 大家可以 设想一下 你们生 活中有没 有每天需 要重复去 进行的工
作 凡是 在电脑上 如果你 每天要重 复进行的 工作 基 本都可以 用自动化 进行 比 如说我每 天会发一 个那个n ewsl etter 这是一个 关于每天
新闻的 之前呢我 就需要自 己在新闻 网站上每 天去看 但新闻网 站嘛都可 以RSS 化 那现 在呢我就 每天用R SS来处 理 它有 很多是英 文的 过
去英文的 我还要逐 条翻译 现在我都 让它自动 翻译 而 且自动截 取 自动 去虫 然 后每天就 给我就行 了 所以 说现在我 每天基本 可以 就 是你看
它会自动 生成三个 文件 然 后这个呢 就是每个 新闻源的 然后到 这一条呢 就是它已经 完成所有 处理的了 就是里 边就是新 闻 而且 已经用m arkd
own的 方式帮我 排好版了 所有m arkd own方 式排版和 这个今日 重点 这 些都是他 自己去进 行的 而 且他都把 它英文的 翻译成中 文 并且
把新闻剪 辑成了长 度非常类 似的条数 等等等 等 当然 里面还是 有些细节 需要处理 啊 等等 等等 这 就是一个 用途 一 个非常典 型的用例 那这个
呢 每天 就要为我 节省大概 两个小时 的时间
做海报
做海报的 图你可以 比如说你 每周都有 固定比如 说你每周 固定要做 三个海报 对吧 这 个海报假 设要生成 三张这个 背景图而 且你每周 的活动又 是提前知
道的 你 完全就可 以写一个 脚本这个 脚本 一 点开就让 你输入三 个文本然 后他给你 自动来三 张图然后 这个用力 呢我有一 个用力 我给大家 说一下我
不是做y outu be节目 吗 那y outu be节目 很多是有 文本的有 文本我要 配图然后 我就有一 个脚本叫做 The head
line to pick . Th
. Th e he adli ne t o pi ck.
You can make it into an anti -car d. L
d. L ike a fl ash card . An
. An ant i-ca rd.
This thi ng n eeds to be c onne cted to your pho ne, but it's def init
ely not a pr oble m. F
m. F or e xamp le, ther e's a si mple r wa y. I
y. I f yo u wr ite it i nto a sc ript yo u ca n wr ite it o n yo ur c ompu
ter.
For exa mple yo u ha ve a n op en t ermi nal or a com mand lin e o r an
y...
y...
You wri te a sma ll f ront end by your self . No
. No t yo u wr ite it y ours elf.
You let him wri te a sma ll f ront end for you . Th
. Th en y ou j ust say that Jap anes e. H
e. H e'll aut omat ical ly s ave it i n a libr ary for you.
The n yo u ca n so rt i t ou t an d se e it . Th
. Th is c an b e do ne.
它的实现 范围是无 限的,这 么说,我 简单给大 家说,有 三个东西 是大家可 以去设想 的,我们 一个个来 啊,第一 个东西, 你们有没 有发现, 很多时候
你们用A I,就是 你们用这 个CHI GPT 或者Ge mini 的话,你 们使用A I,它不 是一个流 程完成的 ,你需要 多步骤的 去跟AI 对话完成
那个结果 ,但是这 个多步骤 未必是每 次都不一 样的,每 次可以是 一样的, 你们有这 样的用力 吗? 比
吗? 比 如说,随 便说一个。
I th ink he h as a lot of illu sion s h e of ten talk s ab out big idea
s. S
s. S o on a m ore impo rtan t is sue, I a sk h im t o gi ve m e a way out
ever y ti me h e sa ys a new lin e. B
e. B ut y ou c an c ompl ete this in prom pt, you don' t ha ve t o us e sc
ript . I'
. I' ll g ive him my e xamp le.
For exam ple, I h ave a th ing that aut omat ical ly d oes expa nsio n re
sear ch w ith a to pic.
How to comp lete thi s ex pans ion?
It' s li ke t his.
I'l l sh ow y ou.
This is what AI wrot e. F
e. F or e xamp le, ther e is a t opic fo r ex ampl e C hina 's f orei gn t
rade gro wth in 2 025, is this for eign tra de g rowt h re al o r fa ke?
Then you ask Chi ajip ichi Ch iaji pich i wi ll b e ge nera ted into a p
arag raph . Bu
. Bu t on thi s ba sis, usi ng t his thin g U RL C onve rsat ion, thi s is
not our foc us t oday . Bu
. Bu t us ing this thi ng, I wi ll s ay w hat?
Usi ng t his thin g A I wi ll a utom atic ally exp and the gene rati on c
onte nt t o ge nera te 1 0 qu esti ons.
Plea se t ype your res earc h qu
esti on.
2025年的 打字也不 会了 完 了完了 它那个l eft arro w是有字符的 Then it
star ts r unni ng.
It w ill auto mati call y ru n. W
n. W e wi ll t alk abou t th e re sult lat er.
Anyw ay, the resu lt w ill be a doc umen t on my desk top.
I o pen all the cont ents in the list . Th
. Th is i s au toma tica lly comp lete d. S
d. S o if you hav e a job, thi s jo b ne eds to b e co mple ted in A I. T
I. T hen this job nee ds t o wa it a lon g ti me.
You don' t ha ve t o wo rry abou t th is.
The thin king of this chi p ne eds a lo ng t ime.
Thi s ne eds to b e co mple ted in m any step s. I
s. I t is eas y to wri te a scr ipt to c ompl ete it.
This is the firs t po int.
第二点, 现在网上 有很多别 人已经做 好的东西 你可以来 用 就比 如说文字 转语音 比如说语 音转字幕 对吧 这些东西 呢如果你 不用的话 网上有很
成熟的 就是一模 一样的那 个技术 别人把它 封装成一 个前端网 站让你用 每个月 少则收你 七刀 多 则收你二 十刀 让 你来用它 其实呢 你都可以
自己来写 它 这个 东西就比 如说用那个 语音转文 字就是W hisp er,W hisp er都是 开源的东 西,你自 己用就行 了,那文 字转语音 又Ind
ex T DS等等 ,那这些 东西都非 常非常有 用,那么 程序员的 世界就知 道,在程 序员的世 界里面有 大量的开 源的脚本 ,那么这 些开源的 脚本都,
并不是每 一个都有 人给你封 装好的在 前端 能 够让你在 网页上调 用它 像 我们这些 编程小白 最经常 的就是你 在网页上 调用一个 东西 但 未必有
第二会很 贵 那如 果你自己 能够 现 在有Vi ve C odin g之后 以前门槛 很高 现 在门槛就 非常非常 低 你就 可以非常 容易的调 用它 那
这个像比 较成熟的 不管是 从这个文 字转语音 云转文 字 还是 现在甚至 你在本地 跑一个大 模型 帮 你做一些 基本的输 入啊 都 是成本非 常低可以
完成的 这是第二类 第三类就 是互联网 上有各种 各样的东 西,你需 要把它调 用到一起 ,就比如 刚才我那 个互联网 上有这么 多宣传网 站,我需 要他每天
给我生成 一个简报 ,这就是 一个很简 单的东西 ,对吧?
那互联 网上有很 多房源, 也是规律 性进行的 ,你可能 需要把它 整合到一 起,那互 联网上有 大量的信 息,有很 多二次的 工具,你 要把这些 东西整合
到一起来 为你所用 ,这些都 是可以的。
除了互联 网之外, 也有你工 作中的, 比如说你 要写工作 周报,对 吧? 你
吧? 你 每周的工 作可能很 零散,包 含了大量 的Exc el文档 ,Wor d文档等 等的东西 。 那如
。 那如 果你写好 一个脚本 ,你每周 就像这样 的Ter mina l输一个 命令行, 然后把你 周工作文 件夹拖进 去,它就 自动读取 了文件, 帮你生成
工作周报 ,这也可 以。 所
以。 所 以说它就 是可以帮 你调用很 多内容来 进行。
一会儿我 们用一个 实际的任 务来帮大 家看啊 但是我要 说一个误 区 误区 是什么呢 很多人 用vib cod ing 因为你是 用自然语 言进行的
好多人 以为啊 这个vi b co ding 就是ch art gpt 所以会直 接在里面 问他问题 就比如 说我拿做 新闻简报 来讲啊 那他就会认为
不管是翻 译还是做 简报,我 都直接告 诉他,他 就能给你 完成,他 也能,比 如说因为 他现在真 的很聪明 ,但比如 说就说翻 译吧,假 设我做新 闻要做自
动翻译, 我直接让 他给我写 ,他也能 写,但他 会自己去 网上调用 一个免费 的翻译引 擎,这样 极差。
So y ou n eed to k now that it' s no t a chat GPT . A
. A chat GPT is wher e yo u as k it to give you the ans wer.
But a v ibe codi ng i s wh ere you ask it t o wr ite the code for you
. Th
. Th e ma ny s ervi ces and cont ent in t his code may not be some thin
g it can pro vide dir ectl y to you . It
. It 's s omet hing you nee d to go to o ther pla ces to s ee a nd p rovi
de i t to it.
So it's sti ll a pro gram ming pro ject in itse lf, inst ead of a res
ult of w hat you' ve s een and done . Th
. Th e on ly r epla ceme nt p art of t his is t he p art wher e yo u do n't
need to go t o pr ogra mming.
OK, now it s ound s a bit abst ract . Le
. Le t's fina lly look at the need s of you r po ssib le b rain stor ming
. Th
. Th en w e wi ll u se a rea l ex ampl e to try . Wh
. Wh at d o yo u th ink is t he r egul ar w ork you do i n yo ur d aily lif
e? I
e? I hav e a lot of m ater ial to d eal with . Th
. Th en I nee d to set up a da taba se t o do the rul es b y na me a nd t
ime.
嗯嗯嗯 是什么素 材 照片 图片视频 都有 这 个完全可 以 这个 可以实现 也就是 说 大家 要知道这 个电脑 对于文本 和文档 有很多可 以自动处
理的部分 比如说 批量化 的给文件 命名 比 如说给文 件进行分类 比如说按 照时间进 行排序 甚至如果 是图片的 素材 你 现在让这 个AI来 帮你对素
材 比如 说假设我 有好多好 的照片 我平时出 去拍了好 多 我想 把里面只 拍人的照 片选出来 那过去 我就要一 张张的看 那现在 如果每个 照片都给
AI 让 AI判断 这是不是 人的照片 是很容易 的 就用 Imag e的AI 那现在 我就可以 写一个脚本 这个脚本 就读我的 所有的图 片,按日 期分类,
并且把拍 人的从里 面单独提 取出来, 当然可能 会有错误 ,就AI 可能会判 断错误, 但是基本 八九不离 十,这个 对AI来 讲是很容 易的。
所以说你 看这里面 会有很多 创造性的 部分,就 是Vib e Co ding 可以和除 了Cod ing以 外和AI 没有任何 关系,就 比如说如 果你只是
做网络简 报,他去 做一些文 本剪贴的 话,不用 任何AI。
But addi ng A I wi ll a dd a lot of capa bili ties . Fo
. Fo r ex ampl e p roce ssin g of tex t r esea rch, gen erat ion of i mage
s t rans lati on, thes e ca n al l be don e wi th A I. E
I. E ven AI t o re move bug s A I fa ct-c heck ing, can all be done ri
ght?
You can eve n do a l ot o f fa ct-c heck ing.
Let 's s ay I 'm a Tru mp.
I'll do an A I fi rst, and I'l l gr ab a ll T rump 's s peec hes.
I'l l do ano ther scr ipt, and I'l l do fac t-ch ecki ng o n ev ery cont
ent.
It' s to tall y po ssib le.
也就是说 过去你可 能需要雇 一个 新 闻编辑室 的人来干 这个事情 现在你 一个人在 家 就可 以从早到 晚黑川普 就可以 黑得不亦 乐乎 对 吧 可以
完全进行 你甚至 从fac t ch eck的 内容 直 接生成稿 件 太容 易了 所 以写一个 脚跟 每 天早上早 上起来 喝了咖啡 点一下 都不用点
AI还 可以 不 是AR 就编程还 可以定时 任务 每 天早上八 点运行一 次 十二 点运行一 次 晚上 运行一次 一天三 码 对吧 非常爽 Let'
s ta lk a bout the las t on e. W
e. W hat else do you have ? Fo
? Fo r ex ampl e e very wee k w e ha ve t o an alyz e th e pr ice of t he p
rodu ct a nd i ts p rodu cts on t he e -com merc e ma rket . Th
. Th en, afte r al l th e se arch es a re d one, we can conf irm what pri
ce w e sh ould set tom orro w. T
w. T his is t he m ost comp etit ive way.
Thi s is tot ally pos sibl e. B
e. B ut f irst th e se arch ins ide has to b e do ne.
But now that the re i s Ag ent, the re i s al so a met hod of v isua l se
arch . Ev
. Ev en i f th e we bsit e do es n ot p rovi de A PI, it i s po ssib le t o us
e th is v isua l se arch.
And this par t do esn' t ne ed t o be pro gram med at a ll.
This par t is als o y ou j ust need to, you see yo u ju st n eed to k
now this tec hnic al r oute an d th en y ou d escr ibe it t o CH I-GB T C
HI-G BT w ill help you gen erat e pr ompt to comp lete thi s th ing, whi
ch i s to use vis ual capt ure.
Aft er v isua l ca ptur e y ou e ven, for exa mple th e se cond par t I
don 't e ven need to know a p rici ng s trat egy.
I l et C HI-G BT g ive me a pri cing str ateg y a nd t hen turn thi s pr
icin g st rate gy i nto a pr ompt . It
. It 's e quiv alen t to th at i s to say yo u fi nall y ha ve t o im agin
e it lik e th is.
It's exa ctly the sam e as you use it on t he w eb.
比如说你 已经抓好 了所有的 价格,生 成一个E xcel 表,这个 Exce l表你的 prom pt就是 另一个 CHP给 你写的一 个定价分 析策略,
让它给你 出结果, 对吧 现 在只不过 你把它写 成一个自 动的东西 从抓到 分析都是 自动的东 西 甚至 如果每月 进行一次 ,它是个 定时任务 ,你都不
用管 每 周八点钟 就自动在 你桌上躺 着了,就 来了 像 我每天那 个新闻简 报就是定 时任务 每天早上 八点十分 ,只要我 不出差 电脑接着 电就行
就算不接 电,比如 说我买个 Mac mini在家 好,我们 就以这个 为例子, 我们拿一
个例子来 试试啊。
Beca use ever yone is zero -bas ed Z ero- base d is act uall y fo r a lot
of d etai ls o f pr ogra mmin g op erat ion Ever yone is unfa mili ar w ith
it a nd a lso don' t kn ow F or e xamp le, what is this thi ng c alle d on
the lef t? I
t? I t's call ed t ermi nal and so o n y ou p roba bly don' t kn ow W hat
is c alle d de pend ency ? Yo
? Yo u ma y no t kn ow e ithe r r ight ? Th
? Th ese are all envi ronm ent, rig ht, righ t r ight Eve ryon e ne eds
to u nder stan d sl owly and slo wly So I sug gest eve ryon e To day we c
an d o it tog ethe r Yo u ca n co ntin ue t o do it when you go back Tha
t's the last too l we use Yes it 's V S Co de F orge t it I' ll o pen
it b elow 最后用的 是类似一 个这样的 东西 这 个东西变 得非常非 常的快速 它也内 置了Co deX 它也内置 了其他的 东西都可 以 你这
样来用的 话就非常 非常快 但是这么 用的话 如果你没 有基础知 识的话 你可能就 完全是面 对一个巨 大的黑箱 就有点 麻烦 对 吧 所以 说我建议
VS Code 是你稍 微知道了 一点点之 后再去做 的 你最 开始就纯 手工打造 Term
inal Why are you usin g gr een?
You can cha nge the colo r yo urse lf.
Yes, it' s ca lled Pow erSh ell on P C. G
C. G reen is for a mo re c omfo rtab le v iew.
The re a re n o ot her func tion s. T
s. T his is T ermi nal.
Ter mina l is a c ompu ter- base d pr ogra mmin g la ngua ge.
Yes, it' s a comm and line.
喬布斯抄 襲了圖像 化程序之 前,大家 用電腦都 是這樣用 的。 就
的。 就 自從樂施 公司發明 了圖像化 介面, 我們用了 Wind ows是 圖形化介 面。 但
面。 但 實際上你 在圖形化 介面裡, T-E -R-M -I-N -A-L Ter mina l 航 站樓那個 Term inal 。 也就
。 也就 是說你在 圖形化介 面做的所 有操作, 底層都 是這個東西。
比如说你 打开Fi nder 进入一个 文件夹, 实际上就 是在这个 框里输C D等等进 入那个文 件夹的目 录。 也
录。 也 就是说整 个电脑其 实就是在 这个东西 上运行的 。 那编
。 那编 程就相当 于它不需 要依赖图 形界面, 直接进行 。 你就
。 你就 只用这些 就行了。
你要学 Term inal Lin ux,有 一整套的 命令行, 你要去背 ,你不用背。
Why don' t yo u ha ve t o me mori ze i t? B
t? B ecau se a ll t he n ame name s ar e wr itte n in cha t. Y
t. Y ou d on't nee d to kno w wh at i t is . Bu
. Bu t ac tual ly, you prob ably kno w wh at i t me ans to u se i t a few
time s. W
s. W hat does CD mean ? Wh
? Wh at d oes LS m ean?
Wha t do es R UN m ean?
Rig ht, what doe s R is?
You know.
OK, toda y we wil l us e an exa mple to try our vibe cod ing.
Thi s ex ampl e is tha t we are sti ll d oing a n ews moni tori ng.
This is the news mon itor ing that Jie Pin g wa nts to d o. T
o. T his news mon itor ing is t he s itua tion in the Taiw an S trai t. W
t. W e ho pe t o ma ke a scr ipt and let it r un.
We w ill use this as an e xamp le t o tr y to wri te a scr ipt like thi
s. O
s. O K l et's do this fir st.
So b efor e yo u wr ite a sc ript th ere is a ver y im port ant idea.
因为你是 用自然语 言告诉C HIGB 我要写一 个脚本我 要怎么怎 么着对吧 但你自 己呢其实 写pro mpt的 能力是很 差的 你 所有给C HIGB
的pro mpt都 让CHI GB来写 所以你 看我开两 个这个C HIGB 的窗 我 们现在一 个里面来 写 这一 个你就用 你的能力 写就行了 我们写
的非常松 散啊 我 要写一个 抓取新闻 的脚本 基于两个 RSS源 That 's i t. I
t. I t's that sim ple.
The n I will con tinu e to say tha t th ere is o ne t hing tha t is ver
y im port ant.
I t hink you nee d to tel l me fra nkly my dea r GP T. I
T. I am a pr ogra mmin g wh ite.
I d on't und erst and prog ramm ing at a ll.
So p leas e pa y at tent ion to t he c ode in d etai l. T
l. T his can' t be und erst ood.
We just got the com mand lin e. W
e. W rite dow n th e co mman d li ne y ou n eed for me.
还有一个 ,需要进 行的代码 修改,都 给我完整 复制的版 本。 这
本。 这 个一会儿 你们就知 道是啥意 思了,因 为恰恰即 必定默认 你会,所 以他恰恰 即必定说 ,啊,请 把这一句 改成这个 ,你,你 我他妈哪 知道是哪
一句啊。
对,所 以你让他 给你可以 完整复制 的版本啊 。 包括
。 包括 你,如果 ,如果你 还有心想 学一学啊 ,里面的 步骤请帮 我解释。
你就这 样,等一 会儿他来了。
哎,不不 不不不不 不不不不 不不不不 不不不不 不不不不 不不不不 不不不不 不不不不 不不不不 不不不不 不不不不 不不不不 不不不不 不不不不 不不不不
不不不不 不不不不 不不不不 不不不不 不不不不 不不不不 不不不不 不不不不 不不不不 不不不不 不不不不 不不不不 不不不不 不不不不 不不不不 不不不不
不不不不 不不不不 不不不不 不不不不 不不不不 不不不不 不不不不 不不不不 不不不不 不不不不 不不不不 不不不不 不不不不 不不不不 不不不不 不不不不
不不不不 不不不不 不不不不 不不不不 不不不不 不不不不 不不不不 不不不不 不不不不 不不不不 不不不不 不不不不 不不不不 不不不不 不不不不 不不不不
不不不不 不不不不 不不不不 不不不不 不不不不 不不不不 不不不不 不不不不 不不不不 不不不不 不不不不 不不不不 不不不不 不不不不 不不不不 不不不不
不不不不 不不不不 不不不不 不不不不 不不不不 不不不不 不不不不 不不不不 不不不不 不不不不 不不不不 不不不不 不不不不 不不不不 不不不不 不不不不
不不不不 不不不不 不不不不 不不不不 不不不不 不不不不 不不不不 不不不不 不不不不 不不不不 不不不不 不不不不 不不不不 不不不不 不不不
You' re s o qu
ick!
You have to choo se t hink ing If y ou w ant to h ave a be tter res ult
You have to choo se t hink ing How can you not choo se t hink ing?
It does n't matt er i f yo u ch oose thi nkin g fo r a long tim e I' m fi
ne I t's okay yo u sa y it It' s ok ay P eopl e do n't unde rsta nd t he w
orld App le i s to o co mpli cate d Th at d oesn 't c ount You see Look 这来了啊
,我给放 大一点。
你看, 这是我一 会儿贴给 Chad G.B
G.B . 他说
. 他说 ,你是一 位超级耐 心的Py thon 脚本教练 要手 把手教一 个完全不 会编程的 人。 他
人。 他 写了,脚 本目标, 你看,使 用Pyt hon3 你就 不知道, 你现在不 知道什么 是Pyt hon3 do esn' t ma tter
,不重要啊。
From pro vidi ng R IS t o co llec ting new s c olle ctin g a loca l fi le f
rom the RIS, you see yo u wr ite it y ours elf, how can you wri te s
uch a co mpli cate d th ing?
So you have to hand thi s pr ompt to him to w rite . He
. He wro te a ver y v ery deta iled pro mpt.
You see th e Py thon cod e th at w as s ent is..
is..
. It
doe sn't mat ter if y ou d on't und erst and it n ow, you just kno w th
at h e is bet ter than you . Th
. Th en, you get this now . Th
. Th en y ou c opy code lik e a magi cian an d yo u op en i t he re.
Exte nd S ynci ng, copy it in, and it w ill come out . It
. It 's t hat simp le.
Copy co py, copy co py, copy . It
. It 's j ust that it give s yo u th is p romp t. Y
t. Y es, and then you cop y an othe r Sy ncin g a nd t hen it c omes . Ac
. Ac tual ly, you can just say it unde r th e "j ust now" and use thi
s ou tput . It
. It 's o kay.
Beca use if y ou d o th is, it w ill be b ette r to sep arat e th em.
Is i t al so l ike thin king mod e? O
e? O f co urse of cou rse, of cour se.
All thin king mod es w ill work bet ter.
It take s a litt le l onge r. Y
r. Y es, it w orks bet ter.
Oka y l ook, her e we go.
Loo k i t's very goo d. L
d. L et m e te ll y ou a gen eral gui de f irst . It
. It 's v ery thou ghtf ul.
It w ill come bac k re peat edly . Yo
. Yo u fi rst prep are the envi ronm ent, cre ate a sc ript fil e r un i
t at the end an d si mply exp and the subs eque nt s tack . Ok
. Ok ay, let me t ell you.
The n ev ery step th e fi rst step is pure whi te.
Prep are the envi ronm ent.
This is Laun chpa d. T
d. T his is L aunc hpad . Th
. Th is i s La unch pad.
Thi s is Lau nchp ad.
This is Laun chpa d. T
d. T his is L aunc hpad . Th
. Th is i s La unch pad.
Thi s is Lau nchp ad.
This is Laun chpa d. T
d. T his is L aunc hpad . Th
. Th is i s La unch pad.
Thi s is Lau nchp ad.
This is Laun chpa d. T
d. T his is L aunc hpad . Th
. Th is i s La unch pad.
Thi s is Lau nchp ad.
This is Laun chpa d. T
d. T his is L aunc hpad . Th
. Th is i s La unch pad.
Thi s is Lau nchp ad.
This is Laun chpa d. T
d. T his is L aunc hpad . Th
. Th is i s La unch pad.
Thi s is Lau nchp ad.
This is Laun chpa d. T
d. T his is L aunc hpad . Th
. Th is i s La unch pad.
Thi s is Lau nchp ad.
This is Laun chpa d. T
d. T his is L aunc hpad . Th
. Th is i s La unch pad.
Thi s is Lau nchp ad.
This is Laun chpa d. T
d. T his is L aunc hpad . Th
. Th is i s La unch pad.
Thi s is Lau nchp ad.
This is Laun chpa d. T
d. T his is L aunc hpad . Th
. Th is i s La unch pad.
Thi s is Lau nchp ad.
This is Laun chpa d. T
d. T his is L aunc hpad . Th
. Th is i s La unch pad.
Thi s is Lau nchp ad.
This is Laun chpa d. T
d. T his is L aunc hpad . Th
. Th is i s La unch pad.
Thi s is Lau nchp ad.
This is Laun chpa d. T
d. T his is L aunc hpad . Th
. Th is i s La unch pad.
Thi s is Lau nchp ad.
This is Laun chpa d. T
d. T his is L aunc hpad . Th
. Th is i s La unch pad.
Thi s is Lau nchp ad.
This is Laun chpa d. T
d. T his is L aunc hpad . Th
. Th is i s La unch pad.
Thi s is Lau nchp ad.
This is Laun chpa d. T
d. T his is L aunc hpad . Th
. Th is i s La unch pad.
Thi s is Lau nchp ad.
This is Laun chpa d. T
d. T his is L aunc hpad . Th
. Th is i s La unch pad.
Thi s is Lau nchp ad.
This is Laun chpa d. T
d. T his is L aunc hpad . Th
. Th is i s La unch pad.
Thi s is Lau nchp ad.
This is Laun chpa d. T
d. T his is L aunc hpad . Th
. Th is i s La unch pad.
Thi s is Lau nchp ad.
This is Laun chpa d. T
d. T his is L aunc hpad . Th
. Th is i s La unch pad.
Thi s is Lau nchp ad.
This is Laun chpa d. T
d. T his is L aunc hpad . Th
. Th is i s La unch pad.
Thi s is Lau nchp ad.
This is Laun chpa d. T
d. T his is L aunc hpad . Th
. Th is i s La unch pad.
Thi s is Lau nchp ad.
This is Laun chpad
是这样的 You will
oft en s ee s omet hing tha t yo u do n't know or some thin g th at y ou d
on't und erst and in t his.
You don 't n eed to u nder stan d it or see it.
Just cop y it and pas te i t he re.
Just cop y it and pas te i t to Chi aGPT . Ch
. Ch iaGP T wi ll t ell you what to do.
You don' t ne ed t o un ders tand it at a ll.
Now I ne ed t o se nd t hese two RSS lin ks t o hi m. I
m. I wil l pa ste it l ater . I
. I will pas te i t to him now.
prom pt p romp t pr ompt pro mpt prom pt p romp t pr ompt pro mpt prom pt p
romp t pr ompt pro mpt prom pt p romp t pr ompt pro mpt prom pt p romp t pr
ompt pro mpt prom pt p romp t pr ompt pro mpt prom pt p romp t pr ompt pro
mpt prom pt p romp t pr ompt pro mpt prom pt p romp t pr ompt pro mpt prom
pt p romp t pr ompt pro mpt prom pt p romp t pr ompt pro mpt prom pt p romp
t pr ompt pro mpt prom pt p romp t pr ompt pro mpt prom pt p romp t pr ompt
pro mpt prom pt p romp t pr ompt pro mpt prom pt p romp t pr ompt pro mpt
prom pt p romp t pr ompt pro mpt prom pt p romp t pr ompt pro mpt prom pt p
romp t pr ompt pro mpt prom pt p romp t pr ompt pro mpt prom pt p romp t pr
ompt pro mpt prom pt p romp t pr ompt pro mpt prom pt p romp t pr ompt pro
mpt prom pt p romp t pr ompt pro mpt prom pt p romp t pr ompt pro mpt prom
pt p romp t pr ompt pro mpt prom pt p romp t pr ompt pro mpt prom pt p romp
t pr ompt pro mpt prom pt p romp t pr ompt pro mpt prom pt p romp t pr ompt
pro mpt prom pt p romp t pr ompt pro mpt prom pt p romp t pr ompt pro mpt
prom pt p romp t pr ompt pro mpt prom pt p romp t pr ompt pro mpt prom pt p
romp t pr ompt pro mpt prom pt p romp t pr ompt pro mpt prom pt p romp t pr
ompt pro mpt prom pt p romp t pr ompt pro mpt prom pt p romp t pr ompt pro
mpt prom pt p romp t pr ompt pro mpt prom pt p romp t pr ompt pro mpt prom
pt p romp t pr ompt pro mpt prom pt p romp t pr ompt pro mpt prom pt p romp
t pr ompt pro mpt prom pt p romp t pr ompt pro mpt prom pt p romp t pr ompt
pro mpt prom pt p romp t pr ompt pro mpt prom pt p romp t pr ompt pro mpt
prom pt p romp t pr ompt pro mpt prom pt p romp t pr ompt pro mpt prom pt p
romp t pr ompt pro mpt prom pt p romp t pr ompt pro mpt prom pt p romp t pr
ompt pro mpt prom pt p romp t pr ompt pro mpt prom pt p romp t pr ompt pro
mpt prom pt p romp t pr ompt pro mpt prom pt p romp t pr ompt pro mpt prom
pt p romp t pr ompt pro mpt prom pt p romp t pr ompt pro mpt prom pt p romp
t pr ompt pro mpt prom pt p romp t pr ompt pro mpt prom pt p romp t pr ompt
pro mpt prom pt p romp t pr ompt pro mpt prom pt p romp t pr ompt pro mpt
prom pt p romp t pr ompt pro mpt prom pt p romp t pr ompt pro mpt prom pt p
romp t pr ompt pro mpt prom pt p romp t pr ompt pro mpt prom pt p romp t pr
ompt pro mpt prom pt p romp t pr ompt pro mpt prom pt p romp t pr ompt 提示词,
也就是什 么是pr ompt ? 你在
? 你在 这个框里 说的东西 就叫pr ompt 就叫p romp t,OK 还有哪 里乱,马 上问 P ytho n P ytho n P ytho
n 你就 装啊 不 用,你这 样复杂了 他里面 会告诉你 怎么装 如果他没 告诉你, 你就在框 里问他 我该怎么 装Pyt hon 对,你就装
结冰乱在 哪儿?
等一下, 我已经.
.. 对
这样, 大家不着 急啊 今 天我们保 证大家都 跑通再说 有任何 问题就说 哦,你 说这个是 吧? 对
吧? 对 ,这个你 们看一下 吧,对 I ca n't see the peop le b ehin d me . I'
. I' ll s end it t o th e gr oup.
I'l l se nd i t to the gro up.
I'll sen d it to the grou p of the Tok yo F orum . Pe
. Pe ople did n't part icip ate, so they tho ught you wer e do ing some
thin g. R
g. R ight th ey d idn' t pa rtic ipat e s o th ey t houg ht y ou w ere doin
g so meth ing.
I c an't sen d it to the grou p. Y
p. Y ou c an s ee f or y ours elf.
I s udde nly reme mber ed.
Beca use I di dn't tur n on the lin e. B
e. B ecau se i f I turn on the line I' ll p oint at my d ialo gue wind
ow.
If I poi nt a t th e di alog ue w indo w i t'll be here . My
. My pri vacy wil l be see n by all of you.
Thi s is ver y im port ant.
Don 't m ove your but t so much.
他让你做 你就做 对 就是 凡是他让 你做的你 就做 凡 是做出问 题的你就 贴给他 PIP是 一个管理 depe nden cy 就 是管理这 个依赖的
一个东西 对 对 对 安 就是了 PIP会 是一个你 经常用的 东西 P IP和H omeb rew是 一个经常 用的东西 对 这东西你 都不需要 懂是什么
,反正他 让你干啥 就干啥, 然后你多 用几次, 你自己也 就慢慢知 道是啥了 。 是这
。 是这 样的,你 现在已经 得到一个 完整的脚 本了,就 是整个这 个就是一 个脚本。
你不用 干什么, 你把这个 脚本一会 儿在Te rmin al里面 去复制成 文件跑, 它就完了。
Just use it and it's don e. I
e. I t's easy . It
. It 's l ike this . I'
. I' ll t ell you what the scr ipt is.
Fina lly, you get som ethi ng l ike this . OK
. OK . Le
. Le t me hel p yo u bu ild some thin g yo u're doi ng n ow a nd t he c onne
ctio n yo u're goi ng t o ma ke a t th e en d. Y
d. Y ou f inal ly g et s omet hing lik e th is.
For exam ple, loo k. I
k. I 'll look ove r th ere.
Rig ht.
You see, the las t th ing that cha tgpt wro te f or y ou i s th is.
It's a w hat, you see it 's i mpor t so meth ing, and the n be low is s
omet hing yo u do n't need to unde rsta nd, you can see the prog ram
in t he c ompu ter, the bla ck s cree n i t's prob ably som ethi ng l ike
this.
This so- call ed v ibe codi ng, what is vibe cod ing?
It' s wh en C hiaG PG f inis hes writ ing all thes e th ings yo u do n't
need to prot ect it, you tell it what you wan t to do, it will deb
ug f or y ou.
Afte r yo u ge t th is t hing yo u ru n th is t hing on your com pute r li
ke y ou'r e ru nnin g Wo rd, runn ing Exce l r unni ng t his book anal ysis
.py,
.py, and it will giv e yo u th e re sult . It
. It 's t hat simp le.
For exam ple, I j ust saw if I fin ishe d my par t. I
t. I 'll give you the res ult.
Oh, I h aven 't f inis hed yet.
Do you have any mor e qu esti ons?
OK, let me e xpla in w hat we a re d oing now . We
. We are now doi ng t he f irst ste p. T
p. T he f irst ste p is to get a pr ompt thr ough thi s. A
s. A nd t hrou gh t he p romp t th at C HAT GPT wrot e fo r yo u y ou d on't
nee d to wor ry a bout the scr ipt.
Get a d etai led guid e. G
e. G et a det aile d fi rst, sec ond, and thi rd s tep.
How man y of you hav e go t th is n ow?
Firs t s econ d a nd t hird ste p. R
p. R aise you r ha nds if y ou g ot it.
Yes, how man y pe ople hav e re ceiv ed a det aile d TS P to tel l yo u wh
at t o do in the firs t st ep a nd t he s econ d st ep?
Wher e is the car d th at h as n ot b een rece ived ? Wh
? Wh ere is t he c ard that has not bee n re ceiv ed?
I pr omis e ev eryo ne w ill pass.
It's lik e th is, abou t th e th ing abou t in stal ling Pyt hon and pip,
we' ll t alk abou t th at l ater . We
. We 'll talk abo ut t hat late r. L
r. L et's sta rt f rom gett ing this . On
. On ce y ou g et t his, you 'll have a r oadm ap.
You can do i t wi th a roa dmap . Yo
. Yo u wo n't ask for anyt hing lik e in stal ling Pyt hon.
It' s ea sy.
Okay I' ll a sk l ike this . Wh
. Wh o's stuc k an d ha sn't got ten this yet ? Ra
? Ra ise your han d. I
d. I t's okay.
没有任何 问题 如 果你没有 带电脑就 算了 没 带电脑的 可以回去 再试 好 那我们 下一步 看这个 你看他现 在还没有 给我脚本 是因为 他让我把
这两个R SS贴给 他 我相 信我贴给 他之后 他就会拿 这个把脚 本给我 我们来试 试 我刚 准备了两 个RSS RSS 我给他解 释一下 RSS就
是一个 一个阅读 协议,它 可以把一 些文本变 成一个电 脑可以抓 取的内容 协议来构 成。 那
成。 那 么RSS 是以前非 常火的一个 Wait a m
inute.
You guys fol low the oper atio n. D
n. D o yo u ne ed y our RSS?
If you need RSS yo u ca n op en G emin i or ope n Ch iaGP T. Y
T. Y ou s ay, plea se g ive me t wo R SS n ews to y ou.
Beca use I'm look ing for two usef ul o nes.
OK, it's OK.
Fro m no w on yo ur p rogr ess may be i n a hurr y. S
y. S ome peop le w ill be s tuck som ewhe re, and othe rs w ill do i t fa
ster . It
. It 's O K. I
K. I f yo u ha ve a ny q uest ions ju st a sk.
Toda y we are doi ng a pra ctic al w orks hop.
Loo k P IP I nsta ll I nstr ucti on.
Once you use the pro mpt just now if you sta rt u sing thi s pr ompt
it wil l de fini tely wri te v ery, ver y de tail ed i nstr ucti ons for
you to c ompl ete step by step . Th
. Th is i s ve ry p ower ful now.
OK, let 's l ook at t his side.
Feed the pas sword.
Ah, feed par ser is a dep ende ncy.
Fee d pa rser is a co ol.
You see, you are thi s f eed pars er, righ t? O
t? O kay, I'l l te ll h im t his.
You see, p in
store 使用各种 各样功能 的,小到 怎么去把 文本拆开 ,怎么把
一个音频 文件分成 两个,大 到一个A I模型的库。
这些库你 都不需要 知道是啥 当然如 果你知道 是啥呢 你会更轻 松一点 但是呢说 实话现在 你看我 刚才的文 件 他一 口气给我 弄了二三 十个兔
绝大部分 我也不知 道是啥 你不需要 知道是啥 你大概 就知道 你经常会 遇到什么 库啊 或 者叫de pend ency 啊这样的 东西 他 就是你需
要的一个 fun ctio n 一个 功能而已 啊 那么 这些也有 时候这样 我给大 家说一个 vib e co ding 的一个点 When you
do vibe cod ing, don 't t ake it a s En glis h. I
h. I t's a ma gic spel l. W
l. W hat func tion doe s it hav e do esn' t ma tter . It
. It doe sn't mat ter what fun ctio n it has . If
. If it asks you to past e y ou p aste . If
. If it asks you to writ e y ou w rite . If
. If it asks you to hit, you hit . Yo
. Yo u kn ow, I've bee n lo okin g at the for tune -tel ling . I'
. I' ve b een look ing at a bun ch o f NI NH, NINH NB DC t hing s. Y
s. Y eah, yea h. W
h. W hy a m I runn ing out of t ime with thi s lo go t itle ? Yo
? Yo u ca n te ll u s la ter.
I'm not run ning out of time . Ye
. Ye ah.
麻烦借我 一下。
你看,他 跑Ter mina l,就遇 到了,遇 到了Ar row, 就是你 只要能够 认英文A rrow 你就知道 而且 他英文还 会标红, 就有问题。
You just pas te t he e ntir e qu esti on s ecti on b ack to C hiaj vici and
it will tel l yo u wh at t o do . Th
. Th e vi rtua l en viro nmen t is to sepa rate the var ious pro ject s in
you r co mput er a nd s epar ate them fro m ea ch o ther.
这个我也 可以说一 句,这个 我本来想 之后说的 ,但是已 经遇到了 就说,因 为有的人 会告诉你 Virt ual Envi ronm ent, 这个东西
挺重要的 ,重要是 啥呢?
因为你电 脑里有各 种包,这 个包用的 是Pyt hon 3,那个 包可能只 能用Py thon 2,如 果电脑装 全局它就 混了,也 就是说这 个世界上
编程的工 具非常多 ,有可能 不兼容。
So t he s o-ca lled vir tual env iron ment is that it can gene rate a c
ompl etel y di ffer ent envi ronm ent from oth er t hing s in the com pute
r. I
r. I ts v ersi ons and depe nden cies and oth er o nes will not fig ht e
ach othe r. A
r. A nd t his is v ery impo rtan t. B
t. B ecau se i f yo u mi x th em a ll u p t here wil l be a g reat ris k. I
k. I f yo u ch ange one thi ng i n th e co mput er, it w ill all be c hang
ed.
Righ t. R
t. R ight . So
. So I w ill corr ect it f or y ou.
Here in thi s st ep, Beca use of t he v irtu al e nvir onme nt, you can
add a se nten ce h ere.
You add I' m a whit e pe rson ho w h ow, how, how ho w h ow, how,
how ho w h ow, how, how ho w h ow, how, how ho w h ow, how, how
ho w h ow, how, how ho w h ow, how, how ho w h ow, how, how ho
w h ow, how, how ho w h ow, how, how ho w h ow, how, how ho w h
ow, how, how ho w h ow, how, how ho w h ow, how, how ho w h ow,
how, how ho w h ow, how, how ho w h ow, how, how ho w h ow, how,
how ho w h ow, how, how ho w h ow, how, how ho w h ow, how, how
ho w h ow, how, how ho w h ow, how, how ho w h ow, how, how ho
w h ow, how, how ho w h ow, how, how ho w h ow, how, how ho w h
ow, how, how ho w h ow, how, how ho w h ow, how, how ho w h ow,
how, how ho w h ow, how, how ho w h ow, how, how ho w h ow, how,
how ho w h ow, how, how ho w h ow, how, how ho w h ow, how, how
ho w h ow, how, how ho w h ow, how, how ho w h ow, how, how ho
w h ow, how, how ho w h ow, how, how ho w h ow, how, how ho w h
ow, how, how ho w h ow, how, how ho w h ow, how, how ho w h ow,
how, how ho w h ow, how, how ho w h ow, how, how ho w h ow, how,
how ho w h ow, how, how ho w h ow, how, how ho w h ow, how, You
see here yo u wi ll u se t hese sen tenc es i n th e fu ture . Le
. Le t me sho w yo u. T
u. T he f irst sen tenc e " cd" is t o en ter the fold er.
"sou rce virt ual envi ronm ent be a ctiv e" i s to act ivat e th e vi rtua
l en viro nmen t an d th en r un t his thing.
-
然后从这 部开始呢
从这开始啊 You don' t ca re a bout the ins tall atio
n of PIP and Fit pres ser.
Thi s is to inst all depe nden cy, to i nsta ll t hat libr ary.
Any way, it' s al l se cond ary inst alla tion . Yo
. Yo u do n't care . Th
. Th en, past e p aste pa ste.
Oka y p aste to this ste p. Y
p. Y ou s ee.
Crea te a pro ject fil e an d sc ript fil e. Y
e. Y ou c an i magi ne t his.
Bec ause if all your scr ipts are mix ed i n on e fi le, how do y ou k
now who is w ho?
Then I g ive him a su gges tion . He
. He let s yo u pu t it on the desk top.
I t hink it' s a litt le t oo m uddl ed.
Yes.
Yes . Yo
. Yo u se e I hav e a file cal led...
led...
Proj ects are in the docu ment . Pr
. Pr ojec ts a re i n th e do cume nt.
Proj ects are in the docu ment . Pr
. Pr ojec ts a re i n th e do cume nt.
Proj ects are in the docu ment . Pr
. Pr ojec ts a re i n th e do cume nt.
This is a be tter way to writ e it . An
. An d th en y ou s ee t his side it 's p arti cula rly powe rful . It
. It all ows you to u se t his term inal to comp lete thi s st ep.
You don' t ac tual ly h ave to u se t he t ermi nal to c ompl ete it.
You can use it, but you can also use som ethi ng e lse to c ompl ete
it.
I'll do it f or y ou.
Let' s do thi s. O
s. O kay, loo k w e go to this fil e ho lder . We
. We 'll foll ow h is w ay.
You can do t his.
The y ca n al so b e in side and out side tog ethe r. L
r. L ike we use cd, eh, how do y ou w rite it in c apit al c d c d a nd t
hen you drag thi s ov er h ere, my proj ect, I'l l bu ild a ne w on e he
re, what is this cal led, Tai wan, any way, rig ht, and then you see
yo u hi t cd con trol yo u dr ag t his over her e e h i t ap pear s a
nd t hen you hit retu rn, and you ente r th is f olde r r ight an d th
en w e sk ip t his make dir ecto ry, and then we have cd in, and then
her e y ou s ee, We a re n ow i n th e fo lder ri ght?
Wha t is it doin g? I
g? I t gi ves you two ways to edit thi s sc ript . On
. On e is nan o. W
o. W e us e na no.
Look I put this nan o in . na
. na no r snew sfet cher .py
.py I go bac k to the car . I
. I ente r a degr ee o f sp ace.
It' s a text edi tor.
It' s a term inal wor d. T
d. T hen you see the comp lete scr ipt code . Ju
. Ju st c opy it.
Just cop y th e co de.
And then mov e it her e. A
e. A nd t hen it w ill tell you wha t to do.
How to save thi s? I
s? I don 't k now how to s ave it.
How to r etur n it ? Do
? Do n't worr y i t wi ll t ell you.
Pre ss t he c ontr ol b utto n of the key boar d. P
d. P ress the con trol but ton of t he k eybo ard.
Pre ss t he c ontr ol b utto n of the key boar d. H
d. H ere it is.
file nam e to wri te r snew sfet cher is it?
at t he b otto m l ook, the per son wrot e it ver y we ll a t th e bo ttom
it wil l as k yo u to sav e th e fi le, just pre ss r etur n I will pre
ss r etur n he re t hen pres s ct rl+x to exit the edi tor ctrl +x, ok,
it's out ri ght?
any way, thi s on e is alr eady wri tten eno ugh, you may not kno w it
and the n it 's i n th e mi ddle of the runn ing scri pt, look any way,
go to t his fold er, and then thi s on e p ytho n3 r snew sfet cher cop
y co de, here ct rl+v 回 你看 出问题了 吧 要的 就是这个 对了 这就对了 出问题 了 出问 题的原因 就是因为 我没有装
那个fi t pr esse r 对吧 但没关 系 你读 不懂也没 关系 你 看 我现 在就来演 示 出问 题你就贴 到这来 然后他就 告诉你 因为你没
装fit pre sser 所以你 用PB inst all去 装 就应 该就这样 所以任 何这种 你看我这 边运行 他就肯定 报错了 然后你就
把这个贴 过来就行了 It's tha t si mple . Yo
. Yo u do n't need to know pro gram ming . Th
. Th en i t te lls you what to do.
This nee ds t o wa it a whi le.
This pro blem is very typ ical . Lo
. Lo ok, beca use I st arte d to exp lain it to h im.
He e xpla ined it very car eful ly.
What is your mis take now ? Th
? Th is m ista ke i s no t ca lled the scr ipt of t his feed pro cess or.
Then sol ve t he p robl em.
Scri pt p ath.
Swi tch.
Use Pyt hon 3 to cal l pe ep t o in stal l. T
l. T hen you put this in.
Fir st, firs t do thi s. T
s. T his is t he e nvir onme nt p robl em.
We d on't car e fi rst.
I r iske d to put thi s fe ed p roce ssor int o th e wh ole envi ronm ent.
You see, it stil l do esn' t wo rk.
I do n't know if this doe sn't wor k. I
k. I t's okay . Yo
. Yo u ju st c opy it.
You copy all the pro blem s th at a ppea r. I
r. I t's like thi s. N
s. N ow, you will fee l mo re c ompl icat ed i n th is d ebug pro cess . An
. An d yo u wi ll f eel that it take s mo re t ime.
But the tim e co nsum ed i s wo rth it.
Beca use thro ugh this pro cess yo u wi ll h ave a mo re b asic und erst
andi ng o f vi be c odin g. W
g. W hen you get this und erst andi ng, you go t o VS Cod e. V
e. V S Co de i s fu lly auto mati c to com plet e th ese.
包括Dr awDe pend ency 这些,几 乎都是全 自动跑完 的,你自 己再也不 需要动了 。 但是
。 但是 如果你一 步跳到那 个全自动 ,肯定会 出一些你 完全理解 不了的问 题,就很 麻烦。
所以为什 么要搞这 个麻烦的 事呢?
就是要透 过这个过 程大概明 白Ter mina l等等的 东西,有 一个基本 的概念。
有基本 概念之后 再去VS Cod e就好很 多。 你
多。 你 看他出来 ,我们来 看。 他
看。 他 给你解释 等等等等 。 你看
。 你看 ,我现在 是Hom ebre w管的, 我不是P ip管的。
So I sai d I don' t ca re a bout the bac k en d. O
d. O kay, loo k. T
k. T his is t he v irtu al e nvir onme nt w e ju st t alke d ab out.
So he s ugge sted tha t I crea te a vir tual env iron ment . Yo
. Yo u se e I am now copy ing to c reat e a virt ual envi ronm ent.
Oka y t here it is.
Then act ivat e th is v irtu al e nvir onme nt.
All is C trl+ Z C trl+ V. T
V. T hen inst all it i n th e vi rtua l en viro nmen t. Y
t. Y ou s ee, once you ent er t he v irtu al e nvir onme nt, it w ill also
wri te t hat ther e wi ll b e th is i n fr ont.
It mean s yo u ar e in thi s vi rtua l en viro nmen t ve rsio n. L
n. L ook here.
Requ irem ent alre
ady inst alled Then ins tall the Fit pres
ser You just hav e to pas te i t st ep b y st ep Y ou s ee i t is dow nloa
ding and ins tall ing it A fter ins tall atio n Af ter inst alla tion it
wil l le t yo u ch eck if t he i nsta llat ion is s ucce ssfu l r ight ? Yo
? Yo u ca n ch oose You see th e in stal lati on i s su cces sful How man
y Fi tpre sser ver sion s ar e th ere?
The n yo u ru n th is s crip t ag ain You see, the dra ft i s co mple te T
his is c ompl ete outp ut o
utput But you see, the re i s a prob lem now.
Wha t is the pro blem ? Yo
? Yo u wi ll f ind that all the con tent s of my thin g ar e no t de code
d. O
d. O nly this and the net pap er, right?
But if y ou m ake a ne ws c olle ctio n y ou h ope to h ave a de code r. H
r. H ow c an y ou m ake it o nly this ? So
? So eve ryon e th ink abou t it . Yo
. Yo u ar e no w a vibe cod ing.
Wha t wi ll y ou d o no w? Y
w? Y ou d on't let him wri te a bom b. Y
b. Y ou c an j ust tell him wha t yo u ne ed.
For exam ple, you say thi s t his, thi s. O
s. O kay, let 's m ake sure eve ryon e ru ns.
Then we will opt imiz e th e ne xt s tep.
Now eve ryon e ha s a comp uter . Th
. Th e di stan ce.
Did you get the resu lt?
No W here is the card ? I
? I got it Y ou g ot i t o kay, wha t ab out the othe rs?
I go t th e sc ript is it the CSV?
The CSV is writ ten in t he s crip t Oh it doe sn't mat ter, rig ht F
or e xamp le, you don' t wa nt i t to be CSV, you wan t it to be t ext,
you wan t it to be W ord You say I wa nt t he o utpu t re sult to be W
ord Then it will giv e yo u al l th e sc ript s p aste the m in and run
aga in, you can try it W here are the oth er s tude nts?
Whe re i s th e ca rd?
Oh, I'm catc hing it.
Oh, you see he sho uld have cau ght it.
Very goo d v ery good . Yo
. Yo u sh ould be fine . Ye
. Ye s I see I see how is M r. H
r. H uang doi ng.
I ca n't unde rsta nd.
I re ally can 't u nder stan d wh ere the prob lem is.
No, it's lik e th is, you see, wai t a minu te.
You will eas ily appe ar.
You don' t kn ow w here the pro blem is now, rig ht?
Okay.
吃酱的如 果你都不 知道我现 在到底在 哪了你就 这样因为 你你一定 要知道你 最终点是 哪一步你 最终点是 这一步拍 手Rs news fla shpy
对吧如果 你不知道 你卡在哪 了你就把 这个打进 去他给你 报错你贴回去 He w ill tell you wha t f or e xamp le,
supp ose you don' t ha ve t his file he tel ls y ou t hat you don' t ha
ve t his file yo u ne ed t o bu ild this fil e. S
e. S uppo se t here is a pr oble m in thi s fi le, what pro blem doe s he
tel l yo u? Y
u? Y ou d on't nee d to und erst and, you jus t pa ste it b ack.
So if y ou h ave Surv ive Codi ng, you may be t oo u nfam ilia r y ou w
ill thin k w ow, whic h st ep a m I on?
Wher e am I?
You Taiw an N
ews RSS.
Do you use nano to save the scr ipt?
Wha t is nan o? I
o? I don 't c are.
You can ask Che z Bt . Yo
. Yo u ca n as k Ch ez B t. D
t. D id y ou p aste the cop y ju st n ow?
Yes, I d id.
Wher e di d yo u pa ste it?
Noth ing came out.
Wher e is it stuc k? T
k? T his is t he t ermi nal I tu rned off the ter mina l ju st n ow B ecau
se I rea lly don' t kn ow w hat it's doi ng O k l ook This is also a c
ommo n pr oble m Yo ur c ompu ter rest arte d or som ethi ng Y our term inal
is off, you don 't k now wher e it is What are you doi ng n ow?
Plea se p ay a tten tion If you appe ar, I do n't know whe re I am now
I'm now on t ermi nal You are doin g no w I' ll t urn it o ff f or y ou L
ook Supp ose I'm half way now Some one aske d me out for din ner Then
I c ame back The com pute r re star ted, wow fr om z ero I do n't know
wha t to do now.
Wha t to do?
Go back to your fol der.
Ple ase note tha t yo u ju st h ave a fo lder ri ght?
I j ust have a f olde r ca lled Tai wan CD c ontr ol g rid.
Go back to this fol der.
You jus t st art ever ythi ng f rom here . Wh
. Wh en y ou a re i n tr oubl e w hen you don' t kn ow w hat to d o g o ba
ck t o yo ur f olde r. H
r. H it a Pyt hon cont rol grid thi ng.
You see what it can repo rt.
You just cha nge it.
Yeah wh atev er h appe ns t o it yo u ju st c hang e it.
刚才是不 是没有继 续讲下去 那个摘要 的事情?
没有, 我先让他 跑到那一 步。 今
步。 今 天跑到那 一步了吗 ? 他让
? 他让 我下载P ytho n。 要
n。 要 下载Py thon ,对。
因为很多 人要下载 Pyth on什么 的,你们 先来。
我还在下 载下卡。
对对对 对。 我
对。 我 都在问他 一步一步 。 对对
。 对对 对,这个 是特别好 ,就是遇 到任何东 西,比如 说你都不 知道怎么 装Pyt hon, 你就问7 177, 我怎么装 Pyth on,他 就告诉你
怎么装P ython。
今天我们 到晚点就 没问题, 大家先搞 ,一定要 交汇,包 交包汇今 天,今天 一定要交 汇 你是 会编程是 吧?那你
吧?那你 在学着干 嘛? 没
嘛? 没 有,我来 听一下新 的ins ight 没有任 何ins ight ,都是b asic ,听一下 新的ba sic I kn ow w here
I'm stu ck.
I'm stuc k at the thi rd s tep.
Yes yo u se e. Y
e. Y ou j ust go b ack to t he f olde r r un a bit an d yo u'll kno w wh
ere you' re s tuck . If
. If you don 't k now wher e yo u're stu ck, you can put the prom pt t
o ch eckG P a nd y ou'l l kn ow w here you 're stuc k. I
k. I t le ts m e op en A pple 's t ext edit or.
Yes, it can also be text edit.
对,然后 新建就可 以了。
是这样的 ,这个t ext edit or为什 么我现在 没有给大 家说呢?
因为如 果你是存 vibe cod ing, 你装了V S co de之后 ,你就跟 这些东西 无关了。
你这辈 子没有干 过读代码 ,改代码 的事,你 也不会, 你也不用 学,你就 蒙着眼睛 动就行了 。 如果
。 如果 要学的话 ,又是很 复杂的另 外一个问 题了。
就是你不 用学这个 东西,你 就蒙着眼 睛动。
But some time s yo u pr obab ly k now that the re i s so meth ing usef ul i
n it . At
. At lea st w e ar e no w tw o RS S. A
S. A t le ast you want to add RSS to y ou.
You know whi ch l ine to p aste in, rig ht?
You don' t kn ow, you want to past e it for you . Ha
. Ha ve y ou a ll r each ed t his step ? Ve
? Ve ry g ood.
Hav e yo u re ache d th is s tep?
You hav en't rea ched thi s st ep y et?
Good . Go
. Go od.
Good.
它是一个 流行词汇 ,vib e就是凭 感觉,v ibe codi ng就是 凭感觉编 程,怎么 凭感觉呢 ? 说白
? 说白 了,我说 翻译成人 话,就用 自然语言 编程,用 自然语言 让711 帮你编程。
You don' t ne ed t o kn ow p rogr ammi ng, you just nee d to kno w wh at y
ou w ant to d o. Y
o. Y ou c an d escr ibe what you wan t to do to i t i t wi ll w rite the
cod e fo r yo u. T
u. T his is V ibe codi ng.
V-I- B-E, Vib e. V
e. V ibe codi ng.
It a lso has tool s. C
s. C odex we wil l fi x it lat er.
Code x is a V ibe codi ng t ool.
Now we are just usi ng t his.
We will tal k ab out tool s la ter.
The rea son we a re u sing thi s is to get fami liar wit h th e ba sic
conc ept firs t. T
t. T o kn ow w hat it i s a nd t hen tran sfer it to V S Co de.
How did you get ther e? H
e? H e ha s al read y pu blis hed the docu ment for me.
Oh, tha t's grea t. I
t. I t's very goo d. D
d. D id y ou g et t hrou gh?
Not yet.
Com e on . Di
. Di d yo u ge t th roug h? O
h? O h y ou g ot t hrou gh.
You didn 't c atch any new s. T
s. T his is t he p robl em w ith RSS sour ce.
You can chan ge t he s ource.
But anyw ay, I th ink you are corr ect.
Ver y go od.
Why don' t yo u us e yo ur c ompu ter to o pera te i t? W
t? W ho i s in the stu dy?
It's his com pute r. U
r. U se y our comp uter to oper ate it.
Right
以前都不 写入诗, 今天有A I写出诗 画面功能 。 有点
。 有点 像是我用 AI教我 怎么写分 析数据的 代码。
对,是一 个东西。
好,因 为现在我 觉得已经 ...
...
这样吧。
根本看 不懂他会 给我一个 这个...
这个...
Beca use ther e ar e so me t hing s th at a re n ot y et i mple ment ed y et.
Ther e ar e so me t hing s th at a re s till in depe nden cy.
We w ill prom ote them lat er.
Let' s mo ve t his step dow n fi rst.
Bec ause it allo ws o ther s to hav e so meth ing to o pera te.
Then we will mov e it dow n ag ain.
We can pick up the proc ess of t he p roce ss.
You will see som e pr oble ms w ith the deco ding jus t no w. F
w. F or e xamp le, the deco ding its elf has no c onte nt.
No d ecod ing.
Inc ludi ng s ome RSS sour ce c an't cat ch t he c onte nt.
This wil l ap pear . Af
. Af ter this thi ng a ppea rs, how do y ou d eal with it?
For exa mple th e de codi ng t hat came out jus t no w is wit hout dec
odin g r ight ? Bu
? Bu t yo u wi ll f ind.
.. I
wil l go bac k to tha t ar ticl e ju st n ow.
他没有摘 要,但是 他有这个 网址,他 有这个新 闻的网址 那么你 就会知道 那如果 你点进去 就应该会 有内容对 吧 那你 就在想, 这个AI 能不能帮
我,我不 想自己看 AI w ill read it by i tsel f. Y
f. Y ou c an g o to the web pag e an d re ad w hat' s in the re.
Afte r yo u re ad t he c onte nt, if i t's a bi t co mpli cate d y ou c an c
all an A PI.
What is an A PI?
I'll tel l yo u la ter.
Let him hel p me sum mari ze.
If i t do esn' t wo rk, you can just giv e me the fir st 2 00 w ords of
this art icle . We
. We 'll try it.
Can we l et h im, beca use we d on't hav e a cure ca n we let him giv
e us the fir st 3 00 w ords?
This met hod, you don 't n eed any prog ramm ing, you jus t us e na tura
l la ngua ge t o sa y it . Lo
. Lo ok, I pa ste this thi ng h ere, and pas te i t in her e. I
e. I tel l it th is J apan ese keyb oard I real ly c an't fin d th e co
de.
It's her e. R
e. R ight.
I bo ught a J apan ese comp uter . I
. I boug ht t his comp uter in Japa n. Y
n. Y ou c an l earn it.
Yes I may not pay atte ntio n. I
n. I don 't u nder stan d th e pr oble m of Jap anes e we bsit es.
Look wh at I 'm g oing to say now.
I s aid, can you rea lize a f unct ion to s crip t yo ur o wn n ews webs
ite?
Bec ause som etim es y ou t ype, I t ype it i n a litt le c lear er.
Ther e's noth ing wron g wi th i t. F
t. F or e xamp le, and put ever y po siti ve t ext 正文的前 300个 字贴给我 。 你看
。 你看 我描述这 个完全是 用自然语 言描述的 。 那你
。 那你 在做Vi bcod ing的 时候, 你所有的 需要你都 用自然语 言描述, 然后它 就会给你 出东西。
所以说 这部分你 甚至不需 要知道, 解决方案 比如说我 其实不知 道是哪个 depe nden cy 哪 个库是可 以做网页 访问的 那他一定 会调一个
库去做网 页访问 要基于网 页访问抓 一个te xt 他 会不会需 要别的库 没关系 他会告诉 你的 你 看可以的 我们来做 一件事情 脚本自 动访问网
页 把前 300个 字写进m arkd own 然后你看 我就说他 建了个新 库 一个 是req uest req uest 就是访问 网页的 一个是b
uilt for soa p fo r 我也 不知道什 么是bu ilt for soap for 你也不 用知道 反正你就 知道可能 你以后要
装这个库 就行了啊 然后加加 加,这部 分你可能 看觉得什 么玩意儿 ,什么叫 get Arti cles .lit
.lit 的函数, doe sn't mat ter, 你只用贴 就行了。
好,到 这儿就是 你需要来 操作的部 分了,所 以说,v ibe codi ng呢, 你就是个 农民工, 你就是搬 砖,你就 是代码的 搬运工而 已。 好
已。 好 ,我们来 啊,我们 现在在这 里面,s ourc e.bi
e.bi n.ac
n.ac tive ,我们贴 acti ve,然 后装re ques t和be auti ful soap。
瞬间装完 ,确认一 下有没有 装上, 确认一下 都装上了 然后 用新的脚 本覆盖原 来的脚本 还是 用方式打 开Nan o,然后 把它贴进 去 好
,我们把 这个Na no打开 然后 呢,但这 个Nan o非常不 好用, 只能一行 行删,特 别讨厌, Ctrl -K。
This is the reas on w hy I use VS Code Bec ause the scr ipt is r elat
ivel y sh ort now Some time s th e sc ript is long pr ess it f or o ne o
r tw o mi nute s No w it 's a lit tle long Sor ry, ever yone wa it f or m
e Be caus e Na no i s a very ori gina l th ing It d oesn 't h ave full sel
ecti on f unct ions I j ust fini shed I w ill now copy thi s in Cop y t
his is t he n ew s crip t Th en t he s ame How to s ave this yo u ma y no
t re memb er H e wi ll d efin itel y te ll y ou B ecau se y ou s aid you were
Xia obai Hey, I r eall y di dn't say tha t b ut I rem embe r it . Ct
. Ct rl+O go bac k C trl+ X o kay, it' s ou t. T
t. T hen run a ne w sc ript to see the effe ct.
It's pro babl y go ing to b e wr ong.
It does n't matt er.
It's jus t th at y ou d o th is t hing . Th
. Th at i s t he p rogr ammi ng i s th e pr oces s of con stan tly figh ting
wit h th e er ror.
It does n't matt er.
You see, it' s gr abbi ng t he r eal thin g. I
g. I t se ems to b e re ally not wro ng.
It r uns very smo othl y. O
y. O kay, let 's t ake a lo ok a t it . Wh
. Wh at d oes it s ay?
We'l l do thi s la ter.
It can be s olve d wi thou t su cces s. O
s. O utput.
装置工具 运行啊 然后比如 说你看 他停在这 儿很讨厌 你希望 停在句号 你都可 以告诉他 停在句 号啥句份 反而如 果你需要 任何新的 功能 需
要任何排 版什么的 你都告 诉他 比 如说你最 后输出的 版本 不 需要这个 网址什么 都告诉他 就是 Basi call y t hat' s it
. So
. So tod ay, if y ou h ave succ essf ully run it, on the basi s of you
r su cces s y ou c an a dd a ny f unct ion you want . If
. If you hav e no pro of, you can writ e pr oof.
If you have pro of, you can tran slat e it . If
. If you don 't h ave proo f y ou c an d ivid e it int o th ree part s. Y
s. Y ou c an t ry a ddin g an opt imiz atio n fu ncti on.
Basi call y y ou c an c ongr atul ate ever yone for wri ting the fir st o
ptim izat ion scri pt i n yo ur l ife.
For tho se w ho h aven 't r each ed t he p revi ous part le t me see . Wh
. Wh at's goi ng o n? Y
n? Y ou'v e in stal led it.
Pyth on i s in stal led.
The pre viou s on e ha s st arted.
I'm goin g to ins tall the fir st s tep of t he X Edit or.
Oh, this is not call ed i nsta llin g. Y
g. Y ou j ust past e it in.
Pas te i t in thi s. Y
s. Y es, but it m ust be s tore d in you r fi le f olde r. T
r. T hat is, you just ins tall ed i t in the fil e fo lder of Pyth on.
What do you mean by inst alli ng i t in the fil e fo lder of Pyth on?
Okay th is i s wh at w ill happ en.
You are comp lete ly c onfu sed.
You del ete ever ythi ng f rom the begi nning.
哈哈哈哈 哈哈哈哈 哈哈哈哈 哈哈哈哈 哈哈哈哈 哈哈哈哈 哈哈哈哈 哈哈哈哈 哈哈哈哈 哈哈哈哈 哈哈哈哈 哈哈哈哈 哈哈哈哈 哈哈哈哈 哈哈哈哈 哈哈哈哈
哈哈哈哈 哈哈哈哈 哈哈哈哈 哈哈哈哈 哈哈哈哈 哈哈哈哈 哈哈哈哈 哈哈哈哈 哈哈哈哈 哈哈哈哈 哈哈哈哈 哈哈哈哈 哈哈哈哈 哈哈哈哈 哈哈哈哈 哈哈哈哈
哈哈哈哈 哈哈哈哈 哈哈哈哈 哈哈哈哈 哈哈哈哈 哈哈哈哈 哈哈哈哈 哈哈哈哈 哈哈哈哈 哈哈哈哈 哈哈哈哈 哈哈哈哈 哈哈哈哈 哈哈哈哈 哈哈哈哈 哈哈哈哈
哈哈哈哈 哈哈哈哈 哈哈哈哈 哈哈哈哈 哈哈哈哈 哈哈哈哈 哈哈哈哈 哈哈哈哈 哈哈哈哈 哈哈哈哈 哈哈哈哈 哈哈哈哈 哈哈哈哈 哈哈哈哈 哈哈哈哈 哈哈哈哈
哈哈哈哈 哈哈哈哈 哈哈哈哈 哈哈哈哈 哈哈哈哈 哈哈哈哈 哈哈哈哈 哈哈哈哈 哈哈哈哈 哈哈哈哈 哈哈哈哈 哈哈哈哈 哈哈哈哈 哈哈哈哈 哈哈哈哈 哈哈哈哈
哈哈哈哈 哈哈哈哈 哈哈哈哈 哈哈哈哈 哈哈哈哈 哈哈哈哈 哈哈哈哈 哈哈哈哈 哈哈哈哈 哈哈哈哈 哈哈哈哈 哈哈哈哈 哈哈哈哈 哈哈哈哈 哈哈哈哈 哈哈哈哈
哈哈哈哈 哈哈哈哈 哈哈哈哈 哈哈哈哈 哈哈哈哈 哈哈哈哈 哈哈哈哈 哈哈哈哈 哈哈哈哈 哈哈哈哈 哈哈哈哈 哈哈哈哈 哈哈哈哈 哈哈哈哈 哈哈哈哈 哈哈哈哈
哈哈哈哈 哈哈哈哈 哈哈哈哈 哈哈哈哈 哈哈哈哈 哈哈哈哈 哈哈哈哈 哈哈哈哈 哈哈哈哈 哈哈哈哈 哈哈哈哈 哈哈哈哈 哈哈哈哈 哈哈哈哈 哈哈哈哈 哈哈哈哈
哈哈哈哈 哈哈哈哈 哈哈哈哈 哈哈哈哈 哈哈哈哈 哈哈哈哈 哈哈哈哈 哈哈哈哈 哈哈哈哈 哈哈哈哈 哈哈哈哈 哈哈哈哈 哈哈哈哈 哈哈哈哈 哈哈哈哈 哈哈哈哈
哈哈哈哈 哈哈哈哈 哈哈哈哈 哈哈哈哈 哈哈哈哈 哈哈哈哈 哈哈哈哈 哈哈哈哈 哈哈哈哈 哈哈哈哈 哈哈哈哈 哈哈哈哈 哈哈哈哈 哈哈哈哈 哈哈哈哈 哈哈哈哈
哈哈哈哈 哈哈哈哈 哈哈哈哈 哈哈哈哈 哈哈哈哈 哈哈哈哈 哈哈哈哈 哈哈哈哈 哈哈哈哈 哈哈哈哈 哈哈哈哈 哈哈哈哈 哈哈哈哈 哈哈哈哈 哈哈哈哈 哈哈哈哈
哈哈哈哈 哈哈 哈 哈 哈哈 用那个t ext edit 去保存 一个这样 的文件 对 对对 对 是这 样的 你 看 他这 个也是一 个问题啊 就是他
现在的思 路还是图 形化界面 的思路 他在图形 化界面里 面操作文 件夹 就 是让大家 熟悉这个 东西的原 因 就是 因为其实 是有一些操作 比如说在 图形界面
里完成不 了的,其 实也行, 但是很麻 烦,什么 Drum dep ende ncy之 类的,所 以大家还 是要学会 在这里面 来,所以 说黄老, 你不要依
赖图形界 面做文件 夹贴,你 就按照他 给你写的 在这里面 完成,我 知道大家 第一次用 Term inal 是很不熟 悉的,而 且Ter mina l的效率
比图形界 面低太多 了,你会觉得 为什么又 没有人发 明一个新 的东西 当然它有 效率高的 一面 就 是你最开 始不要用 图形界面 你从生 成文件夹 什么的
都在Te rmin al里面 完成它 当然大家 一定要熟 悉 等这 些你熟练 之后 去 VSCo de就全 自动了
You - - - - - - - - - -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - - - - - - - - - - - - - - - 最后你还 是要去T ermi nal做 最基本的 运行嘛。
但是现 在基本上 普通的I DE都有 Term inal 的功能。
有。
它都可以 ,甚至你 都不用跟 它交互, 它就自动 给你完成 了。 对
了。 对 。 这样
。 这样 吧,就是 ,这个就 是一个比 较稳健的 版本。
如果这个 稳健的版 本大家觉 得,啊, 门槛太高 了。 那
了。 那 一会儿我 们还有个 更简单的 版本,就 VSCo de。
一会儿我 们把同样 的功能交 给VSC ode再 来一遍, 你们就知 道那多简 单了。
I ma inly kno w th at w hen you are work ing with me, he ofte n wa nts
to w ork with me dire ctly . Be
. Be caus e fo r ex ampl e y ou d o an app I do t hat.
How to do t hat?
I u se G IT.
I'm usin g GI T. I
T. I 'm m ore awar e of his wor k. Y
k. Y ou c an a utom atic ally ins tall GIT acc ount s in VS Code . Yo
. Yo u in stal l GI T ac coun ts, he w ill take car e of you.
You can down load a G IT a nd t hen you can sear ch f or i t. H
t. H ow d o yo u do wnlo ad a GIT ? I
? I thin k I shou ld g o st ep b y st ep.
You can publ ish a re posi tory and the n co mmit . Ye
. Ye s j ust pull it.
But thi s is a m ore adva nced ver sion man agem ent.
Let 's t ake it s lowl y. I
y. I thi nk y ou s houl d no t in volv e ve rsio n ma nage ment in the firs
t ha lf o f th e sc ript wri ting . Ve
. Ve rsio n ma nage ment is a re lati vely lar ge-s cale pro ject . Fo
. Fo r ex ampl e y ou w ant to d o an app . Yo
. Yo u wa nt t o do a w ebsi te.
Ther e ma y be ver sion man agem ent.
就是如果 就是写些 小工具没 有什么版 本管理啊 因为小 工具改坏 了就重新 来一遍了 写 也花 不了多少 时间 对 OK 大家继续 弄着 我 给大家说
说 其实 我把它总 结一下 基本上整 个过程你 可以把它 分成这几 步来理解 就是你 有一个需 要 这个 需要我回 到这儿啊 基本这 玩意就是 这么弄的
你有一 个需要 This req uire s a bunc h of coo l an d a bunc h of con diti ons
Afte r th is c ool and cond itio n is ins tall ed o n th e co mput er, it n
eeds a b unch of code s to dri ve i t to com plet ion So t he p robl em y
ou o ften enc ount er i s ei ther the cod e se ctio n ha s a prob lem, you
jus t pa ste it a nd i t wi ll c hang e it for you Or it's a s tora ge t
hat can' t be ins tall ed, you just ins tall it The code sec tion yo
u ju st n ano or v scod e t he s tora ge s ecti on i s in stal led here
VSCo de V SCod e VS Code Your
99% of the time th e op erat ion is C ONTR OL-C CO NTRO L-V.
But you jus t ne ed t o ha ve a n im pres sion in your hea d. T
d. T he p robl em I hav e no w is is the cod e wr ong or t he c ode is w
rong ? Be
? Be caus e yo u ha ve a bas ic c once pt.
So t his is w hy I sai d w hy d o yo u ha ve t o do thi s fi rst?
It' s ea sy t o ha ve t his basi c co ncep t. O
t. O ther wise th is c ode is i nsta lled by VS C ode.
Som etim es i t is wro ng.
You don' t kn ow w hat' s go ing on.
- I do n't unde rsta nd w
hat you mean by "set ting up" I m ean, exc ept for the code wh at o
ther con diti ons do y ou n eed to r un t he c ode?
Exc ept for the stor age, wha t ot her cond itio ns d o yo u ne ed?
How is i t J immy ? It
? It 's n ot g ood, but now the re s eems to be a mis take I c an't let
him hel p me see the wro ng o ne Y ou m ust have no prob lem
请问第2个
You
How' s th at?
What 's t he p robl em?
The prob lem is t he p robl em o f th e ph one.
You conn ecte d to the Int erne t? Y
t? Y es, I di d. I
d. I n Ch ina, the re i s a real ly g ood thin g. I
g. I n Ch ina, you can 't c onne ct t o th e In tern et.
You need to go t o th e in tern et.
Oh, righ t. Y
t. Y ou s top here . I
. I said thi s is tru e so meti mes.
Bec ause you als o kn ow t his AI.
It w ill be i n al l po ssib ilit ies.
It' s ac tual ly g oing dow n. I
n. I t do esn' t ha ve t he a bili ty t o th ink.
Som etim es A I wi ll t ell you your que stio n. Y
n. Y ou w ill feel a l ittl e we ird.
Why is i t st ill a ne twor k pr
oblem?
Righ t b ecau se f or e xamp le, some peo ple on y our comp uter if you
hav e a long tim e to ope n VP N or som ethi ng, or t here is a ne twor
k en viro nmen t pr oble m y ou j ust foll ow i t an d ch ange it.
What is the inst alla tion ins ide?
- Righ
t j ust ask whil e si ttin g do wn.
Righ t r ight ri ght.
很多不像 我用Co nfig UI都 是调不好 就把那个 图形进来 解给他 好大家现 在到这一 步就到出 一个 到 出一个优 化版本这 不有什么 问题吗
就有什么 甚至不知 道该如何 问Cha tGPT 的问题吧 因为所 有问题都 可以问C hatGPT 肯定能学 会 肯定 能学会 肯定能学 会 这样 因为绝
大度数人 员已经完 成了 我 给大家讲 讲API 这个东西 这东西 要稍微讲一讲 What is API?
API is the thin g th at y our comp uter is comm unic atin g wi th a rem
ote serv er T he m ost comm on i s th at y ou u se t he A PI o f Ch iaGP D or
Gem ini Beca use for exam ple, you wan t to do tran slat ion You have
to give you r th ings to Chia GPD or G emin i to do tran slat ion But
othe rs c an't let you use it for free ri ght?
You hav e an API acc ount Thi s ac coun t is you r co mput er t o co mmun
icat e wi th i t Th en u se i t to cha rge you money So t here are man y th
ings tha t re quir e AP I l ike if y ou s tart usi ng A I l ike Hack ing
Face an d th en C hatG PT, and all kind s of sof twar e t here wil l be
API . Wh
. Wh en t he A PI w ebsi te i s ju st o pene d y ou w ill feel ver y sc ary.
But in fact it 's n ot t hat scar y. L
y. L et m e ex plai n to you.
要这一步 大家千万 不要拿手 机拍啊 你们我的 key拍 下去就可 以回去花 我的钱 对 我就 只能重置 一片了 很麻烦 就我这个 能力重置 一片了
哦对 这 还有这个 录下了 对 没有 他应该 没有明码 的 那不 是明码的 不是这个 I'm my a
ccou nt.
I wo n't show you the pro cess of logg ing in.
I wo n't show you the pro cess of logg ing in.
You see, thi s is the bac kgro und of O penA I. I
I. I f yo u ne ed t his kind of back grou nd, it's usu ally cal led Open
AI A PI o r Ge mini API . Th
. Th en y ou w ill need thi s AP I. T
I. T hen such an API is u sual ly i n th is s etti ng.
You can see the API keys in the sett ings . Le
. Le t me see if this API key is a pa sswo rd o r no t. I
t. I t's not a pa sswo rd.
Then you wil l...
l...
You wil l en ter this . It
. It 's v ery simp le.
You will ent er t his.
The re a re s o ma ny t hing s on the lef t. T
t. T here are mor e th ings whe n yo u ex it.
You don' t ne ed t o ca re.
You only nee d to car e ab out API key.
The n cr eate a n ew s ecre t ke y. T
y. T hen it w ill have a s ecti on l ike this.
吸一个很 长很长的 一个字符 串 你把 这个存下 来 完了 当然在 里面 B -lin k里面输 入你的信 用卡账号 对 然 后就完了 然后有 了这个之后
API key 要用这个 脚本去调 用它 它 才获得权
限 跟这 个远端服 务来沟通 这个也 是你们可 能经常会 遇到的一 个 遇到 这一步进 入任何网 站 你不 用害怕 这个网站 内部都很 复杂 D ocum
enta tion 这那的 不用管 你就直 奔API key 去 然后 生成ne w AP I ke y 结束 其他你 不用多想 And then
as long as you conn ect with Gem ini or G TP, you can do a lot of
func tion s. A
s. A sk q uest ions tr ansl ate, it' s th e sa me a s us ing it o n yo ur w
eb p age.
Is it i n ou r sc ript ? Ye
? Ye s y our scri pt s omet imes fo r ex ampl e I wan t to tra nsla te a
ll t his news int o En glis h s o I use GTP4 to tran slat e it.
这不是说 明的话, 应该翻译 就是一个 问题 不 是,你看 ,这是我 最敢说的 一个问题 啊 很多 人说,你 直接让他 翻就行了 不是, web codi
ng不等 于切爱G PC窗口 就是w eb c odin g只是帮 你写代码 实际上 代码本身 不能翻译 东西 但 有些库可 以翻译, 但效果极 差 翻译
效果好的 是这个L arge Lan guag e Mo del 那要跟他 沟通,你 还是需要 跟他来进 入服务 就代码本 身不是那 个对话框 What
is that dia logu e bo x? W
x? W hat is t his?
Thi s is an fron t en d th at O penA I ha s wr itte n fo r yo u. I
u. I t ha s AP I co mmun icat ion with the bac k en d. T
d. T he c ode you writ e is not use d by it.
Right.
Righ t a nd t hen you have to go t o th e AP I st ep.
API is a ver y ne cess ary step . Af
. Af ter you fini sh t he s crip t i t's all in C hine se.
Let me t hink abo ut i t. L
t. L et m e ad d an othe r vi deo.
Oh, righ t. N
t. N o wo rrie s y ou c an t hink abo ut i t fi rst.
Tra nsla ting it 's p ossi ble for CHI- GB t o tr ansl ate itse lf.
But that 's j ust a fe atur e of CHI -GB itse lf.
It's lik e th is, what doe s it mea n th at C HI-G B it self can tra nsla
te?
CHI- GB d oesn 't h ave a fu ncti on c alle d "t rans lati on".
The onl y fu ncti on o f CH I-GB wi th w eb c odin g C HI-G B on ly h as o
ne f unct ion.
You giv e it a p romp t te xt, it w ill type wor ds w ith this pro mpt.
This is the only fun ctio n of CHA PG T rans lato r me ans that it is e
asy to u se t his thin g to tra nsla te S o yo u ju st n eed to c all CHAP
G AP I to let it give you the tex t No it 's t he o ffic ial Open AI's
off icia l API 要需要额 外付费的 ,这不包 含在你2 0到一个 月的那个 pack age里 面,AP I钱是额 外的钱 对,但是 ,我来跟
你说钱的 事啊,就 是翻译是 一个很简 单的功能 ,如果你 每个都要 用GBT -5就很贵 如果你不 用GBD 5就没那 么贵,翻 译这个东 西是绝对 没有必要
用到GB D5的, 你看啊, 甚至你用 GBD5 ,你用n ano也 行,na no的i nput out put是 5美分和 4美刀i nput out
put, 对吧,然 后,然后, Yes, I c an a lso tell you thi s. L
s. L ook at G PT-5 .1.
.1.
It b ecom es $ 1.25 and $10 . Ve
. Ve ry e xpen sive ri ght?
The pri ce i s no t a quan tita tive pri ce.
So, for exam ple, you do tran slat ion.
You tel l QI GPT . Yo
. Yo u co me b ack here and loo k. Y
k. Y ou t ell me t hat I wa nt t o us e GP T-5 Nano to tran slat e. B
e. B ut t here are che aper mod els.
You can use GPT -4.1 . Th
. Th at i s to say th is t hing so meti mes in o rder to save mon ey,
you want to tell QI GPT.
You say I w ant to t rans late it.
Ple ase help me use GPT- 5 Na no.
That is not fixe d A PI i s no t fi xed, API is the amou nt o f pa ymen
t. T
t. T hat is n ot o n th e we b t hat is n ot o n th e we b t hat is s till
on the web.
Now the pro gram ming is diff eren t t he p rogr ammi ng i s di ffer ent,
you hav e to tel l him.
This is how you ente r th e pr ogra mmer 's w orld . Wh
. Wh y do pro gram mers use Tie nwen ? Be
? Be caus e it 's c heap er.
Prog ramm ers usua lly have a l arge amo unt of u sage . Th
. Th ey w ill choo se s omet hing lik e De epSe q. Y
q. Y ou h ave a li ttle bit of jp, you can tran slat e it wit h Gr ok.
It m ust be c heap her e. G
e. G PT i s al so c heap . GP
. GP T-3 and GPT- 4 ar e al l ch eap.
Tra nsla tion is not a co mpli cate d fu ncti on.
Ther e ar e many OK, let me t alk abou t th is p art.
Bec ause I g uess tha t ma ny o f yo u wi ll u se G BT o r Ge mini for you
r wo rk.
And when you use GBT or Gemi ni, you need to pay.
Pay ing is s omet imes qui te e xpen sive . Es
. Es peci ally whe n yo u ar e ed itin g y ou n eed to c ommu nica te w ith
the bug.
It' s ve ry l ikel y th at s omet hing wil l ha ppen in orde r to edi t a
bug.
So ther e ar e tw o th ings . Wh
. Wh en y ou e dit a bu g d on't use too com plic ated one s. F
s. F or e xamp le, if t he s crip t do esn' t run, Assu ming it' s a very com
plex mod el, you know you 're goin g to use GP5 .1 a
.1 a t th e en d Bu t wh en y ou'r e tu ning it, use GP5 .nan
.nan o Be caus e wh en y ou'r e tu ning it, you did n't run the game so
you 're usin g th is t o ma ke a bug an d it 's n ot w orth it Then the
sec ond is, you need to know tha t th ere are para mete rs i n it le
t me sho w yo u Here 这个你们 去看,这 个是省钱 的部分啊 ,这很重 要啊,因 为要想花 可以花很 多钱。
要用这种 旗舰模型 ,它里面 有两个玩 意儿,有 很多玩意 儿,比如 说这个叫 reas onin g ef fort ,还有个 叫veb rios ity。
Vibr osit y is the len gth of t he t oken Rea soni ng e ffor t is the lev
el o f th inki ng B ut t he l onge r th e th inki ng, the long er t he c hain
of thou ght The more exp ensi ve i t is th e mo re t oken s yo u ha ve S
o wi th t he c ompl exit y of you r ow n ta sk Y ou c an a djus t th e re ason
ing effo rt t o be non mi nima l m ediu m h igh Vibr osit y is the same
This "vi bros ity" has "hi gh", "me dium " " low" . Th
. Th is i s mo re a dvan ced.
If you star t us ing tran slat ion at t he e nd, and you find it too
expe nsiv e y ou m ay h ave to r educ e th e am ount of the mode l. F
l. F or e xamp le, if y ou d o so me t hink ing at t he e nd, and you find
it too expe nsiv e y ou m ay h ave to r educ e th e "v ibro sity " an d th
e "r easo ning eff ort" . Th
. Th ese are all rela ted to m oney . Bu
. Bu t yo u do n't need to say this you rsel f. Y
f. Y ou k now this kno wled ge, and you tell VS Code pl ease red uce
the "rea soni ng e ffor t" t o "m ediu m" a nd " low".
刚才说那 个那种那 个钱的话 指的不 是说我们 平时在网 页上打的 不是那个 对对就 是两套付 费系统 - - - - - - - - - -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - - - - - - - - - - - - - - - I st arte d wi th t he t rans lati
on e ngin e a nd i t wa s a shit . It
. It was a p robl em.
So I fou nd t hat GPT tran slat ion is v ery usef ul.
That 's t he o nly GPT.
For exa mple if you wan t to do some res earc h y ou c an o nly use
GPT.
You are ver y su itab le a nd v ery good at it.
Use larg e la ngua ge m odel AI to d o th ings . Us
. Us e AI . Bu
. Bu t th ere are inde ed m any thin gs t hat don' t us e AI . Fo
. Fo r ex ampl e d on't use thi s ki nd o f AI . Fo
. Fo r ex ampl e t his voic e tr ansl atio n te xt c ame out.
Oh, goo d g ood, good.
Oh m
y god.
文字到语 音用的是 inde xed TTS 那我做这个 Or a
com fy UI.
This is a te rmin al.
Have you eve r us ed C onfi UI?
I ha ve.
But Conf iUI is v ery conv enie nt.
For exam ple, let 's t alk abou t Co nfiU I. W
I. W hat is t he f unct ion of C onfi UI?
Conf iUI is a too l th at s hape s th e te rmin al.
It's a t ool that has a s peci al p rogr amme r to sha pe t he t ermi nal.
It will dev elop som e co ntent.
把它弄好 内置进去 但是你 虽然这么 看 它依 然不能够 像装软件 一样用 它一样要 回到这装 什么 d epen denc y 这那 这那的 它出bu
g还是要 在这挑 它一样会 有bug 有这些 东西 就那酷
.
This is a mo re a dvan ced vers ion.
I'l l ta lk a bout it late r. O
r. O kay, bec ause man y pe ople hav e ru n th roug h it . Mr
. Mr . Hu
. Hu ang will be the sole ins truc tor.
Let 's t alk abou t VS Cod e. A
e. A ltho ugh I ha ve d iffe rent opi nion s as a p rogr amme r I sti ll r
ecom mend tha t yo u fi rst run thro ugh one or t wo s crip ts i n Te rmin
al a nd k now all the basi c co ncep ts.
Then ent er t he t hing tha t yo u re ally use for wor k. T
k. T here are dif fere nt o nes.
I u se V S Co de.
This is it.
This is VS C ode.
This is actu ally wha t pr ogra mmer s us e. W
e. W hat do o rdin ary peop le u sual ly u se?
Beca use you spen d ve ry l ittl e ti me l ooki ng a t th is O rdin ary peop
le s houl d us e it lik e th is B ecau se y ou s pend mos t of you r ti me d
oing thi s Th is t hing you see is the Open AI l ogo, rig ht?
This is what you put in the VS C ode Code x Co dex is t he p rogr ammi
ng a gent for Ope nAI
uh
You don' t ne ed t o lo ok a t th is g ame.
You jus t hi de i t on the rig ht.
Then you go to t he l eft.
You can see how I d id i t. L
t. L ook at w hat I wr ote.
You can tel l fr om t his para grap h th at I ask ed C haiG P to gen erat
e a prom pt.
"Exp ert Pyth on D evel oper wit h Go ogle Clo ud A PIs" etc . Th
. Th is i s wh at C haiG P wr ote to m e. S
e. S o I can tell Cha iGP to w rite a p romp t fo r Co dex.
I w ant some thin g like Just lik e th is o ne.
Then you mak e th is o ne.
Then you pas te i t he re.
OK, let' s st art from the beg inni ng.
This VS Code is not base d on you r co mput er.
You shou ld e nter a f olde r in thi s in terf ace firs t. L
t. L ook, isn 't t here a f olde r? O
r? O r th at t hing yo u ke ep a sma ll s crip t in a f olde r. F
r. F or e xamp le, loca l mo del.
I d on't wan t to mak e a mess.
This is the fold er.
In t his fold er, you ente r th e co dex.
Ple ase look at the code x be low.
Thi s is ver y im port ant.
The re i s lo cal chat mo del sele ctio n a nd m odel usa ge.
This is incl uded in.
.. T
his is e ven free . Yo
. Yo u do n't have to.
.. N
o ma tter how hig h yo u op en i t i t do esn' t co st m oney . It
. It 's j ust a wa ste of t ime.
Som etim es i t's a bi t lo ng.
The key is t his thin g. T
g. T here is chat ag ent, and age nt f ull acce ss.
agen t fu ll a cces s ag ent full acc
ess 但也可以 回滚很麻 烦嘛 所 以你一定 要搞清楚 我现在 是要让他 给我写 还是我有 疑惑 比 如我有疑 惑 你就 开到ch at 他
就回答你 的疑惑 如果你有 一个bu g 天天 让他改 他就给你 改 就是 第八个永 远不是你 的疑惑, 你出了一 堆bug 代码你读 不懂,这 不是你的
疑惑,你 就开fu ll a cces s然后给 改就完了 ,你的疑 惑就是, 比如像我 现在不知 道怎么操 作了,我 该怎么运 行它,我 怎么进那 个东西,
我命令行 打什么命 令来做这 个事情, 这是你的 疑惑,只 有你真的 要操作才 是疑惑, 除此之外 都是fu ll a ccess啊
Next step.
Next Eve, thi s is a b it c ompl icat ed.
It a sks me t o pl ace cred enti al J SON to t his plac e. B
e. B ecau se t his thin g ne eds to b e ca lled usi ng G oogle
Docs.
What is runp ytho n3bo ok.s
ok.s api?
If you have don e th is b efor e y ou p roba bly know wha t I' m go ing
to d o r ight ? I'
? I' m pr ovin g my self rig ht.
You see, I d idn' t un ders tand at that tim e. I
e. I sai d w hat cont ent does thi s cr eden tial .jso
.jso n ne ed?
How shou ld I set thi s? W
s? W hat kind of comm and is t his?
You see I' m al so v ery smal l. T
l. T hen he w ould say wha t to do, etc . e
. e tc.,
tc., etc. This is a ch art,
rig ht?
哇哇哇哇 ,这很多 时候是 full acc ess 但是我问 这个一定 是 ch at 我 问这个一 定是 c hat 然后你看 我也是 他最开始
没有用那 个虚拟环 境隔离 我就说不 需要用一 个虚拟环 境吗 他 就让我用 虚拟环境 好,这 就是报错 的了 报 错的 他 让我可以 改 我说 你看这个
很简单 我发现它 是一个输 入格式的 问题 他 让我改输 入格式 我想我他 妈改什么 输入格式 嘛 我说 行,修改 上这步可 以用脚本 自动修正 也就实现了
So s omet imes do n't be t oo o bedi ent.
He said yo u re ad i t wr ong, you wil l sa y th at i n th e fu ture . Yo
. Yo u sa id, no, I ju st s aid that . I
. I read it wron g y ou c hang e it for me.
The n he cha nged it for you.
The n yo u se e th at h e re ad i t wr ong agai n. T
n. T hen he r ead it w rong aga in, he s aid to y ou.
Now he r ead it w rong aga in, I ca n't unde rsta nd i t. Y
t. Y ou j ust past e it to him.
He will do it f or y ou.
Then he read it wron g ag ain, the n he sai d to you.
又报错了 ,这就是 web codi ng,就 是报错了 ,然后贴 给他,然 后他可以 出,然后 报错,贴 给他可以 出 这些 我给大家 说,不过 这个太细
节了,说 吧说吧 是这样的 ,你看他 说,他说 他改成G emin i 1.
5 Pr o La test 了 这个 是很多时 候这个编 程的ag ent会 用的一个 解决问题 的方法 跑不通, 他覺得是 內玩太高 級了跑不 通,我用
一個最低 級的人跑 通,當好 的時候問 題不是那 個問題。
-
prom pt, righ t. R
t. R ight . Oh
. Oh no no no . Ev
. Ev en i f yo u us e co dex, pro mpt is s till gen erat ed h ere.
Beca use Code x is not a e nvir onme nt f or t his kind of stuf f. I
f. I t's not a ch at e nvir onme nt.
It's not a d efau lt c hat envi ronm ent.
It' s de faul t to use ful l ac cess to chan ge t hing s. S
s. S o I sugg est, of cour se, it m ay b e th at I use d it wro ng.
But I su gges t th at y ou d o th is s tep, do this ste p d o th is s tep,
you do this ste p on the web pag e a nd t hen thro w th is t o he re a
s th e fi rst step . Th
. Th is s tep must be open ful l ac cess in that fil e fo lder . He
. He wil l fi nish it hims elf.
然后他还 有什么问 题吗?
I th ink this is what I w ant to t alk abou t to day.
I t hink thi s th ing is l ike this . I'
. I' m go ing to g ive you a br oad idea . Ma
. Ma ybe a lo t of peo ple now, bec ause we use what I s aid, thi s to
ol, use RSS to c atch the new s r ight ? Yo
? Yo u ma y st ill be t hink ing, wha t ca n I do w ith my o wn v ibe clea
n? S
n? S ome peop le m ay a lrea dy b e ve ry c lear . So
. So me m ay n ot b e so cle ar.
I'll sho w yo u a few of t he t hing s I usua lly use.
The se a re s ome vibe cle an.
What is this rea der for?
这是我们 现在都没 时间读书 ,或者你 得先让A IT你读 一遍,你 再决定这 本书值不 值得读, 你就去N oteb ook LM,对 吧? 你
吧? 你 们有用过 吧? 但
吧? 但 你们有没 有发现N oteb ook LM,如 果你让它 自动生成 那个语音 摘要,其 实效果奇 差无比。
所以说 我每本书 有两个语 音摘,有 两个pr ompt 来生成语 音摘要。
But this boo k ne eds to b e pr oces sed firs t Th en t he p romp t is pic
ked up I 'll give you an exam ple I'll run it for you so y ou k now
Look th is i s th e li brar y I save I c ontr ol C and con trol V e very
tim e I' m co nfus ed T hen this ask s hi m to say Ple ase put a bo ok h
ere We'l l ta ke a boo k Ta ke a boo k an d tr y it Jus t th is o ne, it's
cha nged to this Tak e an EPU B j ust this one Jas pers ' Ge rman Anyw
ay, you can read the boo k la ter.
Thi s is a t ypic al e xamp le.
I us ed t o ge nera te t his book . Wh
. Wh at d id I get in the end?
You can see lat er.
I go t a prom pt t hat was clos e to not eboo k LM . Bu
. Bu t be fore I g ot t his prom pt, I ne eded to do t wo o r th ree step
s in a G emin i to com plet e th e op erat ion.
And it was repe ated . Be
. Be caus e a lot of b ooks nee d to be proc esse d li ke t his.
So you can writ e it int o a scri pt.
然后最后 我会直接 得到两段 prom pt 和 因为EP UB的书 是不能导 入not eboo k.lm
k.lm 的 他会 把这个E PUB的 书 直接 把它变成 TXC文 本放在桌 面上 所 以我就直 接就可以 用这种拖 入的方式 就可以 完成一本 书 要去
生成这个 audi o的所有 prom pt和这 个TXC 文档 如 果是PD F的话就 不用生成 就PDF 就行 所 以这就是 很接近时 间的东西 这是第
一个 这 个大家你 看有读书 需要 你 也可以用 这个方法 对吧很容易 Open AI r eque sts
fail con nect ion error You will hav e th is p
robl em.
I ch ange d th e Ge mini bu t th e Op enAI did not cha nge it.
Beca use Gemi ni o ften has sys tem over load it wil l ex it.
I wi ll t ell you this . Yo
. Yo u wi ll e ncou nter fo r ex ampl e i f yo u ca ll A PI, the API is t
oo b usy or t here is a pr oble m wi th t he c onne ctio n i t wi ll e xit
dire ctly . Yo
. Yo u se e a ll o f th ese befo re a re g one.
Jus t co me b ack, and it is v ery bad to s pend mon ey a gain ri ght?
So if t here is a pr oble m y ou c an t ell it i n VS Cod e. S
e. S o if you enc ount er c onne ctio n er ror or s yste m ov erlo ad, you
will try aga in i n 10 sec onds.
从事十次 不成功再 退出 就 是你就是 都自然语 言出 他 就会自动 给你处理 像这次 就遇到这 个con nect ion erro r 就是 其实不值
得嘛 就 为这个事 停止不值 得嘛 对 这就是那 个res earc h ex pand 你会他 就他就会 就是就我 说那个 简单的一 段话自动 帮我生成
十个问题 然后回 答这十个 问题 然 后出结果 给我 对 是我为什 么能做那 么多节目 就是这 样的 对 然后这个 whis per whis per
就是把这 个把这个 语音转字幕 Just in loca l ru nnin g Th en c onfi UI Then the re i s th
is 4 0 li ne T his fact lin e Th is i s a more del icat e ve rsio n Ca n ou
tput a f ew q uest ions Giv e a text boo k Th at's my 40 l ine prog ram
Just ran out wit h th is g ame So Q 1 Q2 Q3 run like thi s Th en t he t
hing s th at r un B ecau se y ou a ll k now That QI GPT Chin ese abil ity
is v ery bad, rig ht?
QI G PT C hine se i s al so v ery 这里我要 介绍非常
重要的东 西了。
我为什么 不一口气 把它弄完 呢? 这
呢? 这 刚才我们 其实说到 了,大家 又有一点 点这个工 程化的思 维,什么 意思呢?
我们回 到刚才那 个抓新闻 的点啊, 你抓很多 新闻,你 要把它翻 译,要把 它再处理 ,那我觉 得比较好 的方式, 不把它写 在一个脚 本里,你 把这个功
能分段写 脚本来完 成,你最 后可以...
后可以...
告诉VS Cod e 就是 这几个程 序是自动 进行的 如果运行 完这个 就自动运 行这两个 都行 这 个原因呢 第一你 不要把它 改错了 对吧 你
不要把它 改乱了 第二呢就 是 假设 你第一个 生成那个 文本 你 用了GB T 第二 个你翻译 用了GB T 对吧 但你发 现GBT 翻译太贵 了 你要
改Gro k 或者 改千问 但是你可 能说 我 要把里面 的东西改 成千问 哗 把第 一段也改了 就改乱了 所以说 你自己做 一个项目 你有点 工程化的
思维 把 它拆成不 同的阶段 这样你 优化的时 候可以分 段优化 而不用担 心优化某 一段的时 候 把全 局改乱 So i t's not the
same as the fina l re sult . So
. So whe n yo u're doi ng t his web codi ng, some time s yo u ca n ha ve t
his kind of engi neer ing thin king . Yo
. Yo u tr y to put a j ob t hat you migh t ha ve d one in y our past in
a fe w pa rts.
The se p arts yo u ca n ch ange dif fere nt s olut ions in the futu re.
Beca use if y ou d o we b co ding for a l ong time yo u wi ll f ind that
you oft en d o on e th ing, esp ecia lly if y ou u se A I AP Is, you will
oft en c hang e AI mod els.
比如借具 太贵了或 者那个商 务不好 你改别的 然后改这 个tok en等等 等等 就 会有时候 就会乱 所以说你 把这个工 程做一定 程度的工 程化 把
它变成几 个模块 这个是一 个比较好 的方法 甚至呢, 我觉得如 果你,如 果你是很 重要的工 作,你时 间又够, 你把这个 模块拆细 一点,比 你很粗放
的一口气 到达结果 是好的。
比如说 ,我举一 个大家都 用得着的 例子,比 如写工作 日报和周 报,对吧 ? 你当
? 你当 然可以说 我有个文 件夹,我 给你,你 直接给我 收工的周 报,那万 一输错怎 么办啊?
如果是 我的话, 我可能会 做这样的 东西啊, 我把文件 夹给你。
我第一步 就是让A I来帮我 出,请列 出我这周 有哪几个 工作,并 且这些工 作的内容 帮我列。
不是最 后的周报 ,只是l ist而 已。 那
已。 那 比如这部 我就会发 现,它其 实根本就 列不完整 ,它根本 就会遗漏 一些,那 我在这方 面要去改 prom pt,或 者改这个 解决方案 ,对吧。
Afte r th at, I'll use the sec ond step . Yo
. Yo u kn ow t hat Chia GP m ay b e go od a t an alyz ing this gam e b ut i
t's the same as crea ting a s crip t. S
t. S o yo u ma y us e Ge mini to crea te t he s econ d pa rt.
Then you hav e to sav e th e fi rst part wit h re ason able thi ngs, whe
ther it' s an Exc el d ocum ent or a Wor d do cume nt.
You use this doc umen t to fee d Ge mini le t Ge mini cre ate.
In othe r wo rds, the fut ure boss sai d y our week ly r epor t is too
lon g I wan t to cut it shor ter.
You sai d yo u ju st n eed to c hang e th e se cond par t r ight ? Yo
? Yo u do n't have to chan ge t he f irst par t r ight ? So
? So me p eopl e wi ll c hang e it.
So y ou c an d o th e di visi on o f th e pr ojec t by you rsel f. T
f. T his is r elat ed t o wh at I sai d be fore . Si
. Si nce we d o vi be c odin g t here are man y wo rks done wit h AI . Ho
. Ho w do peo ple work wit h AI ? Th
? Th e be st w ay t o wo rk w ith AI i s no t fo r AI to adap t to you bu
t fo r yo u to ada pt t o AI . Wh
. Wh at d oes it m ean for you to a dapt to AI?
You have a j ob.
Don' t th ink abou t wh ich part of the job AI w ill do.
你就想这 个工作我 一点脑子 不动,我 就是AI 的搬运工 怎么完成 ,再把你 的脑子加 进去。
也就是说 ,如果你 要让AI 生成一个 工作流, 比如说, 假设从此 以后我的 专栏文章 全是AI 写,我要 AI写, 那我就千 万别,哦 ,我写好 了AI帮
我润色, 别润色。
From the top ic t o th e co nclu sion to AI, my b rain doe sn't mov e at
all . AI
. AI run s al l ov er.
This doe sn't mea n I want AI to l ook forw ard to m e. Y
e. Y ou c an b ecom e an AI engi neer by doin g th is f irst . Yo
. Yo u kn ow, if I don 't m ove my o wn b rain le t AI hel p me do the
topi c se lect ion, how do I do it?
For exa mple I have one top ic s elec tion in this . Th
. Th is i s th e au toma tic dail y to pic prog ram.
Bec ause I'm not doi ng a new s ev ery day.
I ju st n eed to r un t his dail y th ough t wo rkfl ow, it w ill auto mati
call y ex trac t fr om t he n ews file the fiv e mo st w orth dee peni ng a
naly sis and the thre e qu esti ons from the fiv e ne ws.
I ev en h ave a sp ecia l pr ogra m fo r yo u to see.
That sho uld not be t his, it shou ld b e th is.
I wr ote a be tter one lat er.
Wher e di d I writ e th at?
It's mes sy, ther e ar e to o ma ny t hing s. A
s. A nywa y h ow a bout I s ay t hat?
I j ust need to run it, it w ill be g ener ated 1, 2 3 4 5, 5. I
5. I jus t ne ed t o ty pe t he l ette r I typ e 3.
It will aut omat ical ly r un t he f act line an d it wil l ru n ou t. L
t. L ook, thi s is my...
my...
I do n't want to choo se t he t opic at all.
I g ive ever ythi ng t o AI . Le
. Le t AI fin ish from beg inni ng t o en d. A
d. A fter tha t A I wi ll u se A I to com plet e th e tr ansl atio n an d th
e re st o f th e wo rk.
That is to s ay, you go t o wr ite an a rtic le.
You writ e an art icle alo ne, abou t tw o st eps.
Wri te a dra ft, writ e it an d th en c hang e it . AI
. AI act uall y wr ites sev eral ste ps.
The topi c a naly sis data dr aft, and det aile d an alys is o f ea ch p
art.
The n ge nera te t he t ext of t hat part.
再生成整 体文本 你看这跟 人写作的 思路完全 不一样 但你只有 这样用A I的思路 把这个 信息流完 全重构一 遍之后 你再把自 己往里放 所以这
种思路既 有利于你 用一个 Vibe Cod ing的 方式 把 这个大任 务变成几 种模块 那未来比 如说我可 以单独来 优化 我 觉得AI 找题材这
不不好 我想别的 方法AI 找题材 但比如A I搜资料 非常好 对吧 你 就可以分 部分来优化 So w hen you desi gn V ibe
Codi ng t o co mple te y our own work yo u ha ve t o de sign a p ure AI p
roce ss t hat has no h uman bra in a t al l a nd t hen opti mize whi ch p
art of m y hu man brai n wi ll b e be tter.
For exam ple, you wil l fi nd t hat AI's sea rch for topi cs i s ac tual
ly n ot g ood.
For exa mple I want to add anot her poin t. F
t. F or e xamp le, AI n ot o nly want s to ask one que stio n an d th ree
ques tion s at the sam e ti me, but the ques tion is not good . Th
. Th en I hop e AI af ter I ch oose fiv e i t wi ll h elp me a sk a ser
ies of d iffe rent que stio ns o n th e to pic of f ive.
I c hoos e th e co de h ere, ple ase anal yze 237, and 237 is push ed d
own or s omet hing . Or
. Or cha nge the prom pt, anyw ay, ther e is a l ot o f ro om f or o ptim
izat ion.
So this is a re lati vely eng inee ring ide a. Y
a. Y ou h ave to f ind a wa y to tur n yo ur p roje ct i nto an e ngin eeri
ng p roje ct.
and to p romo te i t in thi s wa y e spec iall y fo r li tera ry a nd l iter
ary work . Be
. Be caus e fo r th e wo rk o f sc ienc e i t is ver y li kely tha t th e th
ing itse lf i s na tura lly a pr ojec t a nd t here is no s uch thin g as
lit erar y wo rk.
This is also a v ery impo rtan t id ea.
This ide a is as simp le a s wr itin g a work of the Dail y Da ily, or
as c ompl icat ed a s wr itin g a whol e re port . Yo
. Yo u ca n th ink abou t it in this way . Ca
. Ca n yo u br iefl y ta lk a bout the ste ps y ou t ook to i mple ment the
imp leme ntat ion of t he i mple ment atio n li ne?
What sof twar e an d wh at?
No, the soft ware is the one that use s VS Cod e. Y
e. Y es, and then it uses ...
...
No, no, no, it's not a v oice imi tati on.
The voic e im itat ion is t he i ndex TS.
Oh, yes . It
. It 's j ust that com fy U I t hat comp lica ted map inte rfac e. A
e. A nd t hen the pict ure is t he o ther one jus t no w. I
w. I t's a he adli ne t o pi ck.
It c an a utom atic ally mak e a few pict ures out of a sc ript . Fi
. Fi ve p ictu res, ten pic ture s p lus a co ver.
The se a re a ll t he p romp ts I wro te.
It r uns auto mati call y. S
y. S o I' m do ing it a utom atic ally now . It
. It wil l be fas ter.
I th ink the orig inal des ign is n ot v ery usef ul.
I'll tel l yo u wh ere it's use ful.
Onc e yo u kn ow t he s tyle of the prom pt, its outp ut i s ve ry s tabl
e an d un ifie d. Y
d. Y ou c an g uara ntee tha t I want to have a u nifi ed s tyle in the
futu re.
It m ust be a uni fied sty le.
For exam ple, the cov er o f my cur rent pro duct is call ed...
ed...
就叫做 cine mati c ne o-so cial ist real ism 厚图感笔 触指张可 立就这样 就是凡 是用这个 pro mpt
出的图风 格都高度统一 I al ways thi nk t hey don' t ha ve t hat kind of deta iled de
tail ed, and deta iled mid -jou rney . Th
. Th ese two are diff eren t. M
t. M id-j ourn ey i s a very det aile d b ut i ts s tyle is AI s tyle . It
. It 's m ore AI s tyle . Th
. Th e ad vant ages of chat GPT and GPT are tha t it has a l ot o f st
yles . Go
. Go ng Q ijun 's s tyle th e st yle of p hoto s w hat cine mati c oi l w
hat kind of thin gs.
It's jus t th at i ts p ictu re i s di ffic ult to r efine.
But for exam ple, you r fu ncti on i s no t to pro duce a v ery deta iled
pic ture . Yo
. Yo u ar e a post er b ackg roun d or a p ictu re b ackg roun d. T
d. T he p ictu re i s no t th e ma in i nfor mati on.
The pict ure is a bac kgro und.
You r ma in i nfor mati on i s te xt.
In t his case I thin k it is easi er t o us e. A
e. A nd t he a dvan tage is that it is v ery fast . Yo
. Yo u wr ite a sc ript . Ev
. Ev en i f yo u us e Th inki ng, it w ill take 10 minu tes to p rodu ce 1
0 pi ctur es.
Auto matic.
其他就有 好的细节 了,这个 细节是无 穷无尽的 ,但基本 的log ic就是 这样的。
哎 我不 知道 有 很多会A I的 有 很多会编 程的同学 站在你 们的角度 有没有 一些给大 家的指导 或者意见 但尤其 你们要考 虑的是小 白啊 对
所以就 很难提 这个是整 个思维必 须高度工程 Yes, hig
h-te ch e ngin eeri ng.
Othe rwis e y ou c an j ust thro w a very vag ue d eman d to AI, and AI
can' t us e it . Ye
. Ye s s o th e en gine erin g as pect is rela ted to t his part . Be
. Be caus e yo u do n't use engi neer ing lang uage to desc ribe you rsel
f b ut A I kn ows how to u se e ngin eeri ng l angu age to d escr ibe it.
So t his is a poi nt t hat make s th ings usa ble.
- 这个就是 会编程的
人当然对 这个质量 控制和优 化会有更 细节的要 求 但这 个小白其 实我就做 不到这个 就是包括 代码质量 啊架构合 不合理啊 超出了 小白的视 野和能力
而且小白 就做的小 脚本 嗨 不合理就 不合理吧 就是能 用就行 大不了用 到哪天 优化不了 推翻再来 一个 反 正就半个 小时 对 吧 对对 对 就是
因为你在 这里面出 的问题是 还有T XC可以 截的 但 比如说你 最后的开 发 设计 到一点点 前端怎么 怎么样 它是没有 文字截的
- Oh, righ t r ight
ri ght, rig ht.
This is very imp orta nt b ecau se i t's real ly i mpor tant to have a c
onte xt.
Righ t. T
t. T here 's a n au to c onte xt i n he re.
This is open . So
. So for xia obai yo u ca n op en i t. Y
t. Y ou d on't kno w wh at c onte xt i s. A
s. A nd t hen the rest is add cont ext.
Her e wi ll b e yo ur f ile fold er.
This fil e h e me ntio ned this . I'
. I' ll s ay a noth er o ne.
For exam ple, This yo ur s crip t wi ll r un o ut o f a lot of f iles in
the midd le o r co mple te f iles Som etim es y ou s ave the desk top for
the sake of the disp lay I do n't thin k it 's g ood Just let it stay
in this fol der So n o ma tter wha t pr oble m yo u ha ve t o ch ange yo
u ha ve t o de bug You can dire ctly sea rch for file s he re, at, to f
ind the midd le f ile It's eas ier to d ebug So this is inde ed a lit
tle bit of a hit in the cont ext So, yeah si nce we'r e ta lkin g ab
out this I' ll s ay o ne m ore thing 以这说, 很重要, 说一个很 重要的, 尤其在这 儿 在这 里面啊, 你得有这
个arr ow去贴 ,对吧 那么有时 候如果你 不告诉这 个编程的 话呢 他 可能不会 把中间那 个API 返回的那 个东西p rint 在这上面 导致你
定位不到 问题 所 以说有时 候在这一 步啊,在 这一步, 在这儿 还有一句 话是可以 讲的,就 是说,有 句话可以 讲的,请 这个过程 中运行产 生的任何
结果都p rint 出来,或 者把完整 的JSO N,完整 的这个J SON的 文本pr int出 来,因为 你是小白 嘛,你不 懂调试, 导致你有 文本可贴。
So i n th is s tep, you can tel l hi m th at y ou a re a lit tle whit e s
o yo u ca n te ll h im a ny p robl em.
And you can be v ery fran k l ike I do n't know how to do i t I wan
t to pas te t he e rror to you, but I'm afr aid that I w on't giv e yo
u th e er ror that did n't come out . So
. So wha teve r er ror you come up with pl ease pri nt i t ou t fo r me
. Pr
. Pr int out the word pri nt, show it to h im, he c an u nder stan d it
. Pr
. Pr int it o ut, so y ou c an p aste som e of it.
Thi s is als o a very imp orta nt t hing.
What kin d of ana lysis?
I th ink some thin g th at c an b e ve rifi ed i n a proc edur al w ay, like
mat hema tics or prog ramm ing, I d on't thi nk i t's very good.
But I th ink it's bet ter for soci al a naly sis.
Eco nomi c g ener al, poli tica l s ocia l a nd m ore coll oqui al.
The resu lt i s be tter . Ma
. Ma ybe it's fin e-tu ned duri ng t rain ing.
If it's pro gram mati c ve rifi cati on, I do n't thin k it 's b ette r. B
r. B ut b ecau se w e do lit erat ure work a lot of w hat we w ant is p
olit ical and eco nomi c an alys is.
This thi ng i s st ill very mat ure.
Som etim es i t's high sch ool stud ents . I'
. I' m re ally not goo d at tha t pa rt.
I us ed t he U nipr o t he G emin i 3.
0 Pr o Pr evie w Th e st ock pric e of the Goo gle was high bec ause of
its late st m odel . Th
. Th at's not the Buf fett bu y it for him . No
. No I have jus t th at f act line yo u wi ll f ind that if you look
at it, I ha ve a Gem ini vers ion.
I s omet imes run two ver sion s. B
s. B ecau se G emin i is che aper tha n GP T s o so meti mes it's goo d to
run a G emin i an d ge t a Plan B f or a fiv e-fi fth price.
我尽量让 杰米乃再 给我跑一 把 是这 样的 我 就说一句啊 I th
ink 我就会觉 得CHP T比较擅 长社科分 析,但是 不擅长出
文本,就 是它的中 文能力非 常差。
英文能力 也比较差 。 但J
。 但J MNI就 是从社科 领域, 写文章能 力很强, 它的文 字是很简 洁的, 可改的, 可用的。
就是切 记笔是不 可用的, 就是文字 。 然后
。 然后 像其他的 其他 的我用的 少 比 如说数学 和编程, 我编程 就用这个 。 你说
。 你说 我能对编 程能力有 多大的理 解能力?
没有。
其他就 要听其他 人的说法 了。 反
了。 反 正我认为 政治经济 分析还可 以 但 是文字能 力很差。
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - - - - - - - - - - - - - - - - - - - - - - - - -
Righ t. R
t. R ight.
This thi ng I thi nk, firs t y ou c an a sk t he H PT, seco nd, this is
inde ed s ome know ledg e ac cumu late d fr om p layi ng o n th e co mput er a
nd t he I nter net for a lo ng t ime.
I t hink it' s ha rd t o te ll p eopl e qu ickl y wi th o ne o r tw o le sson
s. F
s. F or e xamp le, what is Whis per?
I t hink man y pe ople may not kno w th is.
This is stil l yo u ma y us uall y fo r I thin k wh en y ou d o vi be c odin
g y ou m ay b e mo re s ensi tive to tech nolo gy.
For exam ple, I j ust star ted to d o Vi be C odin g an d I knew the re w
as a Com fy U I. B
I. B ut a t th at t ime, for me, to adju st C omfy UI is a nat ural thi
ng.
I ju st t houg ht i t wa s im poss ible for me to c ompl ete the task . Bu
. Bu t af ter half a m onth of Vibe Cod ing, I f elt like I c ould try
it.
I a djus ted it a s so on a s I trie d it . I
. I thin k th is c once rns a pr oble m of how fam ilia r pe ople are wit
h th is t echn olog y. I
y. I thi nk t his fami liar ity will be incr ease d. F
d. F or e xamp le, 这个EP UB转T XT 也 是我用了 PDF那 个Rea d的脚本 用了大 半个月 我觉得 因为我以 前读书绝
大部分是 EPUB 我觉得 太可惜了 我在想 有没有方 法 我就 一问 果 然其实E PUB转 TXT都 很容易 就是一个 库 就会 完成 也 就是说你
要去设想 这个程 序员的社 群很厉害 我认为 大需求小 需求 都 有人写过 工具 只 有你想不 到 没有 他们没做 绝大部分 情况之下 所以基 本上任何
的需求很 可能都会 有程序员 给他写过 库 所以 我觉得你 的想象力 可以宽广 一点 你 遇到任何 需要你都 可以问C hatG PT有没 有一个东 西可以来
完成它 多半都有 因为程 序员还是 挺厉害的 为了这 个免费的 为这个世 界做出了 很多贡献 基本都 有 基本 你能想到 的需求都有 而且很多 都是一个
很低成本 的本地化 一个酷 就可以完 成的功能 大家还 有什么想 问的吗 对我觉得 从零开始 有一个最 大的问题 ,就现在 大家不熟 练的情况 之下,其
实写脚本 还是有门 槛的。
你会觉得 我宁愿今 天多费了 功夫,多 点几下, 我也不愿 意写个脚 本。 但
本。 但 我觉得突 破这一步 障碍非常 重要。
你突破你 对于写脚 本的阻碍 的感觉, 开始能够 自如的感 觉我只要 花三个小 时就能够 赶上未来 的生活, 你要对这 个事有信心。
这样你觉 得一个人 能够 焕 发出一个
大团队的能力 Real ly.
How many tim es d o yo u us e AT I? T
I? T here are pro babl y 40 in GBT.
40?
Yes th ere are quit e a lot.
I wa s tr ying to make it chea per, but I c ould n't get it b ecau se o
f th e bi g tr ansf er.
I ju st p ut t he u nlic ense d s o I don' t ne ed t o tr ansf er a ll t he G
PT-5 .1 t
.1 t o ot her thin gs, or l ower the fre quen cy, use nano et c. B
c. B ecau se I oft en f ind that the re i s a post tha t sa ys y ou j ust
rush ed t o th e ac coun t an d go t 10 kni ves.
I t hink it' s so fas t I did n't do a nyth ing toda y b ut I got 10
kniv es.
The 8th one is t he m ost expe nsiv e b ecau se t he t oken amo unt prod
uced whe n th e pr oble m oc curs is very lar ge.
Fina lly done . Do
. Do ne?
VS C ode
花钱不是 来deb ug的 花钱是来 用它的功 能的 比 如说你要 用CHP 给你做翻 译 实际 上你就是 把你的一 段中文文 本传给C HP 它 给你传回
一段基于 你pro mpt的 文本 这 段不是拿 来deb ug的 这段就是拿来 It's a f unct ion.
You let the CIG B de bug usin g th is.
The codi ng t ool of C IGB, thi s co dex.
Thi s ga me i s fr ee t o pl ay.
This is not for free . Wh
. Wh at d id y ou s ay?
Oh, it's lik e th is.
Your deb ug i s li ke t his.
For exa mple I make a t rans late d te xt.
And then I h ave a bu g. I
g. I t ca used him to repe at t his text a h undr ed t imes in the case
of erro r. I
r. I s th e ou tput bug?
Righ t t here is a bu g in the mid dle, but it can' t be sol ved.
But in this sit uati on, the toke n am ount of the top type is 100
time s bi gger . It
. It cos ts a lot of mone y. F
y. F or e xamp le, I se t a prob lem, and the re i s a end poin t. B
t. B ut t he e nd p oint par t ha s a bug, res ulti ng i n th e in fini te l
oop.
The exc hang e ra te i s in fini te, and the tran sfer rat e go es u p. T
p. T his is t he p art.
这个是这 样的,这 个止损在 API的 网站上可 以完成, 比如说每 次最多冲 多少钱, 一个月最 多花多少 钱,比如 说我这个 账户AP I,每个 月最多十
刀,每次 最多冲三刀。
is s et u p. H
p. H e al so k nows tha t yo u gu ys c an..
an..
. Yo
u ca n tu rn o n th e de bug and slee p a nd s pend a t hous and doll ars.
If you go a nd s ue h im, he w ill be v ery trou bled . Is
. Is it a de bug scri pt?
No, no, no.
Debu g is ...
...
Of c ours e d ebug is a de bug scri pt.
But the part tha t ne eds to b e sp ent, not nec essa rily how muc h it
cos ts, but when you are adj usti ng t he A PI, some time s it wil l ca
use thes e ex pens es w ith AI.
That par t ne eds to b e ta ken into acc ount . Ot
. Ot her time s l ocal deb ug d oesn 't c ost mone y. I
y. I t on ly c osts ele ctri city . Ho
. Ho w mu ch e lect rici ty d oes your hou se s pend ? It
? It onl y co sts how much.
因为AP S要花钱的 You
know Ther e is a w ebsi te c alle
d We bPag e Ar chiv e. S
e. S o I trie d it it 's f easi ble.
You can mak e it pay wall . Yo
. Yo u ca n do it.
For exa mple wh en y ou h ave cont ent in y our sear ch, plea se s ubsc
ribe to cont inue wat chin g. O
g. O r un der the situ atio n of pay ing, ope n th is w ebsi te, type arc
hive .ies
.ies her e a nd g o to tha t pa ge.
It's fea sible.
Yes, thi s is als o fi ne.
It c an b e st ored . Th
. Th e fo llow ing is t o se arch for the rul e fi le.
This is feas ible . Yo
. Yo u ha ve t o su bmit it.
Yes su bmit it.
Yes ye s y es, yes, yes ye s y es, yes, yes ye s y es, yes, yes
ye s y es, yes, yes ye s y es, yes, yes ye s y es, yes, yes ye
s y es, yes, yes ye s y es, yes, yes ye s y es, yes, yes ye s y
es, yes, yes ye s y es, yes, yes ye s y es, yes, yes ye s y es,
yes, yes ye s y es, yes, yes ye s y es, yes, yes ye s y es, yes,
yes ye s y es, yes, yes ye s y es, yes, yes ye s y es, yes, yes
ye s y es, yes, yes ye s y es, yes, yes ye s y es, yes, yes ye
s y es, yes, yes ye s y es, yes, yes ye s y es, yes, yes ye s y
es, yes, yes ye s y es, yes, yes ye s y es, yes, yes ye s y es,
yes, yes ye s y es, yes, yes ye s y es, yes, yes ye s y es, yes,
yes ye s y es, yes, yes ye s y es, yes, yes ye s y es, yes, yes
ye s y es, yes, yes ye s y es, yes, yes ye s y es, yes, yes ye
s y es, yes, yes ye s y es, yes, yes ye s y es, yes, yes ye s y
es, yes, yes ye s y es, yes, yes ye s y es, yes, yes ye s y es,
yes, yes ye s y es, yes, yes ye s y es, yes, yes ye s y es, yes,
yes ye s y es, yes, yes ye s y es, yes, yes ye s y es, yes 没有AP
I其实是 做网页调 用 就是 有了一个 库 这个 库可以做 一些网页 操作 这 个过去是 很麻烦的 但现在 变得很容 易了 就 是现在有 些简单的 网页调用
操作 取 回内容 You may find tha t th ere
is a rul e in thi s po sition 如果有规 律的,你 连什么网
页调用都 不用。
刚才我们 不是有一 个网站可 以直接访 问网页吗 ? 就是
? 就是 那个叫啥 ,什么T axa之 类的东西 。 就拿
。 就拿 那个就行 了。 对
了。 对 ,所以就 很容易的 over the pay wall 。 如果
。 如果 有的话, 但是你也 可以写, 如果没 有的话, 返回一个 什么东西 千万 不要中断 之类的。
你可以 让他去控 制那个, 他的那个 canc el的步骤。
也就是大 家要對現 在人類科 技有信心 啊 你能 想到的需 求可能都 有解決方 法 很難 說我們這 種生活中 產生的互 聯網需要 竟然超 出了程序 員工作的
邊界之外 很難很 難 尤其 是只是基 於網上的 基本都有 解決方案 Just ask you r de ar G P to wri te a VS
Code for you . Bu
. Bu t I sugg est that eve ryon e st ill star t fr om a rel ativ ely simp
le p oint of view and gra dual ly m ake the prog ram more com plic ated
. Th
. Th at i s to say a good ide a ju st n ow i s th at w e on ly h ave the
simp lest new s ev ery day.
The n I want to chan ge t he f orma t fo r hi m. I
m. I wan t to tra nsla te i t fo r hi m. I
m. I wan t to do some thin g el se f or h im.
I wi ll s lowl y op timi ze i t. I
t. I t is fro m a mini mum dema nd.
This thi ng i s mo re c ontr olla ble.
For exa mple yo u wr ite a ve ry c ompl icat ed o ne.
You don' t kn ow h ow t o ch ange it.
都不敢怎 么调,就 是很麻烦 ,因为我 们都是小 白嘛 就 你从一个 最小需求 点出发, 然后慢慢 慢慢扩充 就是你 从,你有 个大任务 ,你从那 想到它的
里面一个 小模块 从那个模 块开始 比如从这 个让AI 帮你总结 根据你 每周的2 00个文 件 帮你 总结你每 周干了什 么任务的 列表开始 来完成
你们每周 写日报周 报的工作 大家还 有什么要 问的吗?
I th ink that eve ry t ime you do a rel ay, from sim ple to c ompl ex,
if y ou d on't use GIT yo u mu st r emem ber to c opy a ne w on e. Y
e. Y es, this is a wa y. Y
y. Y ou c an c opy the file aga in.
Ther e is ano ther way . In
. In fac t t here is a wa y. Y
y. Y ou c an a utom atic ally cop y so meth ing with the ter mina l. S
l. S o yo u ca n ev en w rite it here.
也就是说 每次代码 的更改量 如果大于 百分之几 也不知 道 百分 之五 百 分之十 就自动保 存一个版 本 然后 后面是时 间戳 就 是比如2 025
1116 140 0 自动 保存 比 如说哇 它完全改 乱了 你 回去找它 就行 所 以说如果 每次更改 量过大 就自动保 存在本地 这是一个 如果你觉
得什么什 么是gi thub 我也不知 道什么在 VS C ode里 面接gi t我啥什 么也不知 道 你用 这个方法 可以比较 简单的去 保存一个 本地版本
也就是 说这些你 看这是他 刚问的我 临时想出 来的 但 是这些只 要你掌握 了这种思 维方式你 就知道怎 么工程化 的去优化 自己的东 西就不会 变得很容易
而且这个 东西,现 在你没有 这个熟练 程度没关 系,你只 要多vi ve c odin g一下, 慢慢慢慢 你就会有 这种思路 了,就是 该怎么去 做一些工
程上的管 理啊等等 等等。
真的,这 个我再强 调一下, 这绝对是 现代人必 备的技能 ,未来人 与人的差 异会是v ive codi ng的差 异,你的 工作能力 的大小差 异,这个
会把人跟 人间差异 大幅度的 拉开。
您现在与 其特别成 一个互联 网经理 对 就是 这个真的 会大幅度 拉开 这 个是一个 很重要的 技能 而且 Beca use it's the ear
ly d ays of l arge lan guag e mo del, its eff icie ncy is n ot a s go od a
s it use d to be.
Of cour se, some peo ple say that sca ling is a ve ry c ompl icat ed p
robl em.
But I th ink it s till has pot enti al.
It m ay d o be tter in the futu re.
If y ou c an u se i t ef fici entl y i t wi ll b e re ally hel pful . Wh
. Wh y do you use Con fuI?
Ind ex T TS, whic h is tex t-to -spe ech tran slat ion.
I u sed to u se t ext- to-s peec h tr ansl atio n b ut i t wa s no t ne cess
ary.
It was easy to use Whis per loca lly.
Yes, and in the futu re, if t here are any loc al m odel s e very one
buys a h igh- end comp uter for con figu rati on, or i t be come s a very
pro fita ble thin g. B
g. B ecau se g ood thin gs s till hav e to be in a bet ter conf igur atio
n to run . Th
. Th is i s in deed ano ther exp ense.
显卡就是 你要组台 式机的嘛 但如果 你是这个 MacB ook的 话 不是 啊 因为 你买会员 你只能在 页面 也 就是说我 们为什么 要搞这个 web
codi ng 就 是这么弄 效率低嘛 I ha ve t o wa it f or i t to run one ste p t wo s teps
th ree step s e tc.
If y ou u se t his vibe cod ing, you can run aut omat ical ly.
What you wan t is thi s. W
s. W hat you want is to r un i n mu ltip le s teps aut omat ical ly.
What you wan t is to mix four to five ste ps t oget her to u se.
So t he m oney can be inve sted her e. O
e. O f co urse if it' s th e be st w ay, you can buy the Mac Mini . Th
. Th is i s th e ch eape st w ay.
Mac Mini is the chea pest . Ma
. Ma c Mi ni, for exam ple, the re i s a Mac Mini wit h M5 . If
. If you mak e 32 GB, it's alr eady on the fly.
I do n't know.
Now, is the loca l mo del stil l ab le t o un ders tand the res t of the
doo r? N
r? N o t hat can be a djus ted, the re a re a ll k inds of diff eren t on
es B ut I thi nk i t's stil l be caus e ou r co mput er c an r un T he n umbe
r of par amet ers is o ne-t went y on e-th irty of that pen Act uall y t
he e ffec t is sti ll b ad B ut m y tr ansl atio n is alr eady don e by loc
al m odel tra nsla tion If you tran slat e it it 's e noug h to use loc
al m odel . Tr
. Tr ansl atio n mo ney may save two kni ves ever y mo nth But what if
the comp uter chi p ex plod es?
In t he f utur e i t ma y be rig ht.
It's oth er m oney . It
. It can sav e a lot of m oney . I
. I used to chan ge t he l angu age and text eve ry m onth . On
. On the Kod ak X unfe i i t ma y be 100 or 130 per mont h. T
h. T hen the text to the lang uage Use oth er t hing s fo r ei ght or t
en k nive s a mont h. I
h. I s it sav ed n ow?
You save 30 kniv es a mon th, righ t? 3
t? 3 00 k nive s a year . Sa
. Sa y mo re.
还好的别 的钱都能 省反正能 省不少钱 了 能买 两股UV 的 明年 再翻番6 00刀就 来了 对 吧 我已 经买了6 00刀的 股票了 看你买的 实际上个
月买的就 亏死了 去年买的 去年买 的你今天 得请我们 大家吃饭 了我觉得 What do you want to ask?
I j ust said tha t we b co ding can con nect the two . Is
. Is it the same as the webs ite?
I s aw t he w ebsi te.
No, web codi ng i s a conc ept.
Web cod ing is a way for whi te p eopl e to hel p yo u ma ke i t. I
t. I t ca n be use d in var ious way s. Y
s. Y ou c an p aste it on t he w ebsi te, or y ou c an u se i t in VS Code
. We
. We b co ding is a wa y fo r yo u to mak e it in a na tura l la ngua ge.
这个事儿 有各种实 现方法, 对,就这 个事儿。
那叫V SCod e,这不 叫Vib e Co ding 。 那是
。 那是 我的Go ogle ,那是我 的变迁, 那是我的 变迁工具 而已,那 是我的G oogl e No tes。
That 's n ot a web -bas ed n etwo rk.
That 's m y vi rtua l ne twor k. I
k. I jus t st ored som e th ings in the fold er.
I ha ve a que stio n. O
n. O r th e fr iend s he re c an a nswe r. I
r. I f I say that my comp uter was bou ght many yea rs a go, in t he 3
0s, and now the perf orma nce is c ompl etel y ou t of lin e. I
e. I f yo u sa y th at, incl udin g th e fu ture you sai d m any of t hese
lar ge m odel s wi ll b e ve ry p ower ful.
If you choo se t o bu y a comp uter now, Wind ows and Appl e. A
e. A pple is more ind epen dent in term s of gen erat ion.
Win dows is more sim ple.
How do you choo se s uch a si tuat ion?
It' s a mudd le g ame.
It' s de fini tely Win dows.
I'll put it this way . I'
. I' ll s ay t hat just now ma ny o f ou r vi be c loni ng p arts inv olve
d ru nnin g lo call y. T
y. T he l arge r mo del part s ar e st ill less . Fo
. Fo r ex ampl e l ike Whis per need s to run loc ally . In
. In dex TTS need s to run loc ally . Th
. Th en, the loca l de ploy ment of larg e mo dels nee ds t o ru n lo call
y. T
y. T he o ther par ts a re a ll u sing API and
- 付出的其 实都跑得 动 那如 果你要为
了想到在 本地部署 一些模型 做很多 事情的话 我不知 道啊 从 他们的广 告上来看 好像苹 果要厉害 点 因为 苹果不是 老吹嘘自 己的什么 M5芯片
为了这 个AI运 算做了什 么优化 这边说并 发这那这 那 这是 他老吹那 个 反正 因为我没 有怎么看 到英特尔 吹自己 我们新一 代芯片为 了AI优
化这那这 那 还没 怎么听说 Of c ours e o f co urse of cou rse.
Righ t. R
t. R ight . Ri
. Ri ght.
Rig ht.
Righ t. R
t. R ight . Ri
. Ri ght.
Rig ht.
Righ t. R
t. R ight . Ri
. Ri ght.
Rig ht.
Righ t. R
t. R ight . Ri
. Ri ght.
Rig ht.
Righ t. R
t. R ight . Ri
. Ri ght.
Rig ht.
Righ t. R
t. R ight . Ri
. Ri ght.
Rig ht.
Righ t. R
t. R ight . Ri
. Ri ght.
Rig ht.
Righ t. R
t. R ight . Ri
. Ri ght.
Rig ht.
Righ t. R
t. R ight . Ri
. Ri ght.
Rig ht.
Righ t. R
t. R ight . Ri
. Ri ght.
Rig ht.
Righ t. R
t. R ight . Ri
. Ri ght.
Rig ht.
Righ t. R
t. R ight . Ri
. Ri ght.
Rig ht.
Righ t. R
t. R ight . Ri
. Ri ght.
Rig ht.
Righ t. R
t. R ight . Ri
. Ri ght.
Rig ht.
Righ t. R
t. R ight . Ri
. Ri ght.
Rig ht.
Righ t. R
t. R ight . Ri
. Ri ght.
Rig ht.
Righ t. R
t. R ight . Ri
. Ri ght.
Rig ht.
Righ t. R
t. R ight . Ri
. Ri ght.
Rig ht.
Righ t. R
t. R ight . Ri
. Ri ght.
Rig ht.
Righ t. R
t. R ight . Ri
. Ri ght.
Rig ht.
Righ t. R
t. R ight . Ri
. Ri ght.
Rig ht.
Righ t. R
t. R ight . Ri
. Ri ght.
Rig ht.
Righ t. R
t. R ight . Ri
. Ri ght.
Rig ht.
Righ t. R
t. R ight . Ri
. Ri ght.
Rig ht.
Righ t. R
t. R ight . Ri
. Ri ght.
Rig ht.
Righ t. R
t. R ight . Ri
. Ri ght.
Rig ht.
Righ t. R
t. R ight . Ri
. Ri ght.
Rig ht.
Righ t. R
t. R ight . Ri
. Ri ght.
Rig ht.
Righ t. R
t. R ight . Ri
. Ri ght.
Rig ht.
Righ t. R
t. R ight . Ri
. Ri ght.
Rig ht.
Righ t. R
t. R ight . Ri
. Ri ght.
Rig ht.
Righ t. R
t. R ight . Ri
. Ri ght.
Rig ht.
Righ t. R
t. R ight . Ri
. Ri ght.
Rig ht.
Righ t. R
t. R ight . Ri
. Ri ght.
Rig ht.
Righ t. R
t. R ight . Ri
. Ri ght.
Rig ht.
Righ t. R
t. R ight . Ri
. Ri ght.
Rig ht.
Righ t. R
t. R ight . Ri
. Ri ght.
Rig ht.
Righ t. R
t. R ight . Ri
. Ri ght.
Rig ht.
Righ t. R
t. R ight . Ri
. Ri ght.
Rig ht.
Righ t. R
t. R ight . Ri
. Ri ght.
Rig ht.
Righ t. R
t. R ight . Ri
. Ri ght.
Rig ht.
Righ t. R
t. R ight . Ri
. Ri ght.
Rig ht.
Righ t. R
t. R ight . Ri
. Ri ght.
Rig ht.
Righ t. R
t. R ight . Ri
. Ri ght.
Rig ht.
Righ t. R
t. R ight . Ri
. Ri ght.
Rig ht.
Righ t. R
t. R ight . Ri
. Ri ght.
Rig ht.
Righ t. R
t. R ight . Ri
. Ri ght.
Rig ht.
Righ t. R
t. R ight . Ri
. Ri ght.
Rig ht.
Righ t. R
t. R ight . Ri
. Ri ght.
Rig ht.
Righ t. R
t. R ight . Ri
. Ri ght.
Rig ht.
Righ t. R
t. R ight . Ri
. Ri ght.
Rig ht.
Righ t. R
t. R ight . Ri
. Ri ght.
Rig ht.
Righ t. R
t. R ight . Ri
. Ri ght.
Rig ht.
Righ t. R
t. R ight . Ri
. Ri ght.
Rig ht.
Righ t. R
t. R ight . Ri
. Ri ght.
Rig ht.
Righ t. R
t. R ight.
Yes, the mem ory is v ery bad.
Thi s is all fur ther . I
. I thin k ev eryo ne i s tr ying to writ e so me s mall too ls f or t hems
elve s fi rst.
Wri te s ome very sma ll t ools to supp ort thei r li ves.
and then slo wly try to d o so me m ore comp lica ted thin gs a nd t hen
keep pra ctic ing more and mor e an d th is i s ac tual ly r eall y I thin
k th e wo rd p ract ice is t oo h eavy kee p pl ayin g be caus e th is t hing
is real ly l ow c ost can' t sa y pr acti ce y ou f inal ly d idn' t pr acti
ce a ny t echn olog y it 's a ll h is t echn olog y yo u ju st d o th e se cond
han d se cond han d ri ght you just kee p pl ayin g pl ay m ore func tion
s an d th at's it beca use the stoc k ma rket is grow ing so m uch new
tech nolo gy i s gr owin g so muc h do you hav e an ythi ng e lse to ask I th
ink in t he f utur e r egar ding vib e co ding and so on, we c an a lso
ask the peop le i n th e Do ngji ng p eopl e's move ment com muni ty.
I'm not the most exp erie nced per son, I j ust need to use more wor
k. I
k. I thi nk s ome peop le w ith prog ramm ing expe rien ce w ill prob ably
use it bett er, and have mor e me thod s. T
s. T hey will als o be mor e sk illf ul.
Of c ours e s omet imes the ir s kill fuln ess is n ot l earn ed b y Xi aoba
i. Y
i. Y ou d on't hav e th e ac cumu lati on, you don' t ha ve t he a bili ty t
o us e th em.
So I thi nk X iaob ai h as X iaob ai's way of usin g it . I
. I thin k ev eryo ne s houl d tr y mo re a nd u se m ore.
That 's a ll i t's
about.
So i f yo u ca n en dure 50 roun ds, what scr ipt can you writ e? I
e? I f yo u ca n on ly e ndur e 10 rou nds, you may giv e up ver y qu ickl
y. S
y. S o it 's i mpor tant to endu re a few rou nds of F uzha zhie . An
. An d th is i s de fini tely les s th an 1 % ea sier tha n pr ogra mmer deb
ug.
Can it a lso sugg est an a ppli cati on s cena rio?
Bec ause now man y pe ople may not thi nk o f ho w to hel p th em d o it.
这个当然 可以,如 果你问C had G.B.
G.B.
,我的生 活中有哪 些东西可 以用we bcod ing写 成脚本会 更方便, 他一定会 给你提好 多。 但
多。 但 我觉得还 是从大家 痛点出发 吧,就是 你真的有 那个必要 性的出发 ,就是你 创造出一 个用力是 在你的生 活中反复 出现反复 出现的, 或者多步
骤反复出 现的,那 它就是最 适合变成 脚本的东西。
反复出现 的事情吧 在你的工 作中不管 是学一日 语啊 还 是任何情 况之下都 可能会出 现对甚至 我觉得下 次我们如 果有这个 培训的第 二场我们 可以做这
个东西啊 我们就 做外扣定 脚本的b ring sto ne就我 们就来想 有什么玩 意儿可以 写成脚本 这个事情 这我想象 力很重要 。 那个
。 那个 有个AP P叫Do orCa rd, D-O- C-A- R-D, 还挺好用 的,就是 日语单词 可以变成 Door Card ,对。
REM Note Okay
. I
. I am n ot.
That is a go od q uest ion.
Tha nk y ou v ery much . Th
. Th at i s al l fo r to day.
Loading video analysis...