V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
V2EX  ›  lookStupiToForce  ›  全部回复第 25 页 / 共 58 页
回复总数  1152
1 ... 21  22  23  24  25  26  27  28  29  30 ... 58  
2022-12-06 10:43:58 +08:00
回复了 MID 创建的主题 macOS 终于能在 macOS 上愉快的使用鼠标了
感谢,同用触摸板最后手指疼
2022-12-06 10:22:29 +08:00
回复了 aPaul 创建的主题 问与答 发现一家疑似骗子助贷公司
国内这些通过搞门路抽过桥费的公司,有一个算一个,全都得被抓倒闭
再低的市场利息,也能被这些收过桥费的玩意儿给炒高炒到离谱
而且他们还压根不负责担风险

不过源头问题也不在这里,他们也属于权钱交易的下游,说多了又要骂起来,唉
2022-12-05 18:56:28 +08:00
回复了 wliansheng 创建的主题 Python 怎么使用 pd,构建一对多的表格数据呢?
two methods:

1. multi level index
intuitive but not recommended
https://pandas.pydata.org/docs/user_guide/advanced.html

2. duplicate values in first two columns to match third columns row count
2022-12-05 17:16:04 +08:00
回复了 Suclogger 创建的主题 OpenAI 探讨 ChatGPT 对软件行业和程序员工作的影响
@Suclogger #6 what a fucking black magic!!!👹👹👹
2022-12-05 16:02:26 +08:00
回复了 usnake 创建的主题 Python 为什么用 Python 保存的图片色彩不对呢
代码换了,用下面的测试
'''
from PIL import Image, ImageDraw, ImageFont
import cv2
import numpy as np


def test():
image = Image.new('RGB', (150, 150), (255, 255, 255))
draw = ImageDraw.Draw(image)
font = ImageFont.truetype("calibri.ttf", size=25)
draw_text = 'why use\n\nPython'
draw.text((10, 10), draw_text, font=font, fill=(235, 84, 77))

output_file = 'test.png'
output_file_2 = 'test_2.png'
output_file_3 = 'test_3.png'
output_file_4 = 'test_4.png'
image.save(output_file)
cv2.imwrite(output_file_2, np.asarray(image))
cv2.imwrite(output_file_3, cv2.cvtColor(np.asarray(image), cv2.COLOR_RGB2BGR))
cv2.imwrite(output_file_4, np.asarray(image)[:, :, ::-1])


if __name__ == '__main__':
test()
'''
2022-12-05 16:01:13 +08:00
回复了 usnake 创建的主题 Python 为什么用 Python 保存的图片色彩不对呢
op ,你确定你代码的颜色给对了嘛?
另外建议直接 with Image.open('back.png') as image:...,不要用 bk_img = cv2.imread("back.png") 再 Image.fromarray(bk_img)转换一次,你这转换过去又转换回来极容易出错 /出现颜色转换损失
最后,经测试 3 楼用的 AI 回答也还是正确的

'''
from PIL import Image, ImageDraw, ImageFont
import cv2
import numpy as np

def test():
image = Image.new('RGB', (100, 100), (255, 255, 255))
draw = ImageDraw.Draw(image)
font = ImageFont.load_default()
draw_text = 'why use Python'
draw.text((10, 10), draw_text, font=font, fill=(235, 77, 84))

output_file = 'test.png'
output_file_2 = 'test_2.png'
output_file_3 = 'test_3.png'
output_file_4 = 'test_4.png'
image.save(output_file)
cv2.imwrite(output_file_2, np.asarray(image)) # op 原始方法
cv2.imwrite(output_file_3, cv2.cvtColor(np.asarray(image), cv2.COLOR_RGB2BGR)) # copliot 给的方法
cv2.imwrite(output_file_4, np.asarray(image)[:, :, ::-1]) # chatGPT 的方法


if __name__ == '__main__':
test()
'''
附图
https://i.imgur.com/ssheTce.png
https://i.imgur.com/GUBwNMY.png
反正除了 test_2.png ,其他三幅图的颜色都是对的,分毫不差
2022-12-05 13:59:12 +08:00
回复了 vinsony 创建的主题 问与答 公式求解 In(R/1-R)= -0.3
说实话有点惊讶,我以为上这个坛子的人至少接受过高中教育......
2022-12-05 10:54:43 +08:00
回复了 FishGrazier 创建的主题 问与答 CPU 速度很快但是占用率不高是什么情况
是 intel 就下一个 Intel(R) Extreme Tuning Utility 自己测试,如果散热能满足就把功率拉满拉爆
是 AMD 就自己想办法测试🤣
2022-12-05 10:45:16 +08:00
回复了 andyJado 创建的主题 问与答 没有国外手机号,好想玩 CHATGPT🥺
@whitehack #8 感谢指路
印度号码已成功,而且其他 app 也可以使用,资源有保证了(?
一周时间?放全国所有普通高校是 0.1%,放 985211 是 5%,就算是顶级名校也是 10%
2022-12-05 10:03:35 +08:00
回复了 la2la 创建的主题 程序员 能不能用 AI 的方法监督核酸检测点做核酸?
2022-12-02 19:09:28 +08:00
回复了 igarashikenshin 创建的主题 问与答 只是备用的话 K40S 和 K50 Ultra 哪个更值?
备用机关心屏幕干嘛,你在备用机上刷剧刷电影的吗?
K40s 无悬念
copied from [a comment from this issue]( https://github.com/material-theme/vsc-material-theme/issues/1256#issuecomment-1335024724)

> I confirm the issue. Reinstall in vain because Package Control no longer gets all the files necessary to run. It is inadmissible under the pretext of lack of maintenance to generate errors in use based on deleting files. There are tons of ST3 packages that are no longer maintained, but no developer has acted like the Material Theme team. even if it is a proprietary code, what happened today is not ethical towards all users of this package. I will uninstall it and I will stop using it in other IDEs even if it is maintained (Visual Code, Phpstorm).

I just saw such an arrogant dev team.
2022-12-02 15:13:02 +08:00
回复了 3kkkk 创建的主题 程序员 个人养老金账户大家怎么看
中国财政报告 2019:谁来给我们养老?

http://pdf.dfcfw.com/pdf/H3_AP202001071373638024_1.pdf
1 ... 21  22  23  24  25  26  27  28  29  30 ... 58  
关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   实用小工具   ·   2447 人在线   最高记录 6679   ·     Select Language
创意工作者们的社区
World is powered by solitude
VERSION: 3.9.8.5 · 33ms · UTC 11:39 · PVG 19:39 · LAX 04:39 · JFK 07:39
Developed with CodeLauncher
♥ Do have faith in what you're doing.