Cy86 最近的时间轴更新
Cy86

Cy86

V2EX 第 316181 号会员,加入于 2018-05-14 04:55:35 +08:00
Python 爬虫并发极限是多少呢?
Python  •  Cy86  •  2020-03-17 01:34:29 AM  •  最后回复来自 lithbitren
25
如何自学 Vue 呢
Vue.js  •  Cy86  •  2020-02-26 13:47:43 PM  •  最后回复来自 Hanggi
70
从 WSL1 换到 WSL2 ,整体速度上去了, 但没法通过公网链接
Windows  •  Cy86  •  2020-02-20 21:31:58 PM  •  最后回复来自 Cy86
14
光猫的 Lan 口和路由器的 Lan 口做级联,会增加带宽么
分享创造  •  Cy86  •  2020-03-09 19:50:11 PM  •  最后回复来自 Cy86
10
朋友公司买了网站 1W 元,请大家看看,提些意见
程序员  •  Cy86  •  2020-03-09 19:45:16 PM  •  最后回复来自 Cy86
118
用 阿里云和域名(已备案) 反向代理国外 vps 的网站 可以么
Chamber  •  Cy86  •  2018-09-02 23:58:50 PM  •  最后回复来自 ThirdFlame
1
如果在网页嵌入别人的网页然后刷流量可行么
浏览器  •  Cy86  •  2018-08-27 19:00:45 PM  •  最后回复来自 night98
3
Cy86 最近回复了
60 天前
回复了 alexhx 创建的主题 北京 所以有什么渠道可以买到点烟花?
@fredweili #20 注意别买错了, 不然点半天点不着, 仔细一看是 TM 焊条
大家手速都太快了, 没有了
2022-11-03 21:56:56 +08:00
回复了 biuyixia 创建的主题 程序员 单页 html 加上密码的这种方式安全吗?
如果需求中的安全仅对于小白, 且页面没有很大的商业价值也是可以的
反正只要对方想爬你, 你又不是大公司, 对反爬也没那么严格, 他们怎么着都能爬, 不如节省成本挡住小白足够
愿意的话加点难度,搞一个接口验证返回数据插到 body 里
2022-10-31 21:38:04 +08:00
回复了 Salticey 创建的主题 生活 电脑 DIYer 是最可怜的一群人
我从 1080Ti 等到了现在 4090 都出了
2022-10-16 00:34:15 +08:00
回复了 haha512 创建的主题 程序员 这个 gitee 项目的 REMDME.md 哪个会是敏感词
之前看别人的: 听妈妈的话- 周杰伦
成了: 听妈**话-周杰伦
如果是 .md 后缀违规就好玩了
2022-10-10 20:03:59 +08:00
回复了 bibiisme 创建的主题 宽带症候群 哪些地区运营商的 b 站会卡?
@huaes 我说呢, 为啥最近看视频总会有卡顿, 看来还是 CDN 整体缩减了
2022-09-29 11:08:41 +08:00
回复了 su2zu 创建的主题 宽带症候群 网心云一个星期上传了 1t 左右流量,才给了不到五块钱。
5 块? 为啥我 1T 才 5 毛
2022-09-23 19:58:21 +08:00
回复了 jeeyong 创建的主题 Python 如何提高 Python 数组操作性能.
2022-09-23 19:57:40 +08:00
回复了 jeeyong 创建的主题 Python 如何提高 Python 数组操作性能.
from numpy import maximum,uint8
from pydicom import dcmread
from PIL.Image import fromarray
from time import perf_counter

def convert_dcm_jpg():
im = dcmread('test.DCM')
rescaled_image = im.pixel_array.astype(float)
# rescaled_image = (maximum(rescaled_image,0)/rescaled_image.max())*255 # float pixels
final_image = uint8(rescaled_image) # integers pixels
final_image = fromarray(final_image)
return final_image
if __name__ == '__main__':
t = perf_counter()
image = convert_dcm_jpg()
image.save('test1.jpg')
print(F'用时:{perf_counter() - t:.8f}s')

# 0.01024350s
2022-09-23 19:56:27 +08:00
回复了 jeeyong 创建的主题 Python 如何提高 Python 数组操作性能.
from numpy import maximum,uint8
from pydicom import dcmread
from PIL.Image import fromarray
from time import perf_counter

def convert_dcm_jpg():
im = dcmread('test.DCM')
rescaled_image = im.pixel_array.astype(float)
# rescaled_image = (maximum(rescaled_image,0)/rescaled_image.max())*255 # float pixels
final_image = uint8(rescaled_image) # integers pixels
final_image = fromarray(final_image)
return final_image
if __name__ == '__main__':
t = perf_counter()
image = convert_dcm_jpg()
image.save('test1.jpg')
print(F'coast:{perf_counter() - t:.8f}s')
关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   2945 人在线   最高记录 6543   ·     Select Language
创意工作者们的社区
World is powered by solitude
VERSION: 3.9.8.5 · 42ms · UTC 14:10 · PVG 22:10 · LAX 07:10 · JFK 10:10
Developed with CodeLauncher
♥ Do have faith in what you're doing.