huichao's recent timeline updates
huichao

huichao

V2EX member #524204, joined on 2020-12-17 10:17:57 +08:00
huichao's recent replies
@yhxx 我不写代码,管着他们而已。谢谢你推荐。
Jan 13, 2021
Replied to a topic by zealinux 硬件 小孩子第一个手机推荐买什么手机?
iPhone 和 iPad 来选的话,我比较倾向 iPad,屏幕大相对来说没那么费眼,创建个家庭账号,加上时间限制,差不多了;还是不要给孩子电话卡打电话吧,用网络发视频语言就够了。
Jan 7, 2021
Replied to a topic by AzureDeer Python 请问大家,我这一段为啥报错呀
def get_average(scores):
sum_score = 0
for subject, score in scores.items():
sum_score += score
print('现在的总分是%d' % sum_score)
ave_score = sum_score / len(scores)
print('平均分是%d' % ave_score)

get_average(scores)
Dec 29, 2020
Replied to a topic by lopetver MySQL 如何对 mysql 进行优化的问题
你的 avg, 单独写在一个 function 可能会好点儿, 所有的查询,基本都是先加条件拿出来较少的数据,再来进行其他的逻辑操作,会快很多。
Dec 28, 2020
Replied to a topic by kaka6 程序员 2021,一个老程序员的 flag
2021 年终极目标: 活着 💀💀💀💀
CentOS8 要死掉了,你们转去 Ubuntu 吗?
Dec 22, 2020
Replied to a topic by Flands 程序员 关于 js 中使用 switch (true) 和 if else
switch. 喜欢 switch 的写法,性能比 if else 高。
@abersheeran 谢谢你的建议。路由多了会影响性能 😨 , 这点儿我有点儿害怕了, 那 fastapi 不会吗?
Dec 19, 2020
Replied to a topic by lixuda Flask 如何优雅升级 Python web 程序
1. 用 python 写个 github (比如你用的是 GitHub,gitlab 也可以)的 webhook,用 fabric 写命令自动部署,用 Nginx 也可以做到无宕机
2. 找个 serverless 的服务器,部署无宕机
Dec 19, 2020
Replied to a topic by taomujian Python 用纯 Python 实现一个发送邮件的功能
个人推荐使用第三方的,我们公司有用 Mailgun 和 SendGrid
About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   1140 Online   Highest 6679   ·     Select Language
创意工作者们的社区
World is powered by solitude
VERSION: 3.9.8.5 · 19ms · UTC 18:04 · PVG 02:04 · LAX 11:04 · JFK 14:04
♥ Do have faith in what you're doing.