世界快看:小米6PPI
from
(资料图片)
math
import
sqrt
diagonal
=
5.15
# inches
resolution
=
;">1920
,
1080
)
# pixels
width
,
height
=
resolution
ppi
=
sqrt
;">**
2
+
height
**
2
)
/
diagonal
;">f"The PPI of Xiaomi 6 is
{
ppi
:
.2f
}
."
)
# The PPI of Xiaomi 6 is 428.15.
以上代码使用勾股定理计算屏幕对角线的像素数,再除以屏幕对角线的英寸数,得到PPI。
import
re
import
requests
url
=
"https://"
response
=
requests
.
get
;">)
html
=
response
.
text
# 获取屏幕分辨率
match
=
re
.
search
,
html
)
resolution
=
tuple
;">map
;">int
,
match
.
group
;">1
)
.
split
;">"x"
)
)
)
;">f"The screen resolution of Xiaomi 6 is
{
resolution
}
."
)
# 获取屏幕对比度
match
=
re
.
search
;">r"对比度:"
,
html
)
contrast_ratio
=
float
;">match
.
group
;">1
)
)
;">f"The contrast ratio of Xiaomi 6 is
{
contrast_ratio
}
."
)
# 获取屏幕色域
match
=
re
.
search
;">r"色域:"
,
html
)
color_space
=
match
.
group
;">1
)
;">f"The color space of Xiaomi 6 is
{
color_space
}
."
)
以上代码使用requests库获取小米6的详细信息页面,再使用正则表达式获取屏幕分辨率、对比度、色域等信息。
综上所述,小米6的PPI为428,屏幕采用夏普和JDI屏,OGS全贴合工艺,支持NTSC色域、自动识别湿手和手套模式,有边缘防误触专利技术。可以使用以上代码获取小米6的PPI、屏幕分辨率、对比度、色域等信息。
关键词:
下一篇:最后一页
- 小米手机指纹传感器失灵
- PC战争,联想输不起_今日快看
- 绿通科技(301322):6月8日北向资金减持1.08万股-全球快看
- 当前速讯:摩托罗拉xts5000说明书(摩托罗拉xt800w)
- 山西华澳商贸职业学院学费多少(山西华澳商贸职业学院学费)_全球快看
- 梅西表示自己还被另一家欧洲俱乐部招募!但他没考虑!
- 盛屯矿业:拟以1亿元-2亿元回购股份
- 世界观察:河南精准有序调度 跨区作业不误农时丨奔跑的三夏
- 梅西去技术扶贫?迈阿密国际是副班长 16轮队内射手王才3球? 精选
- 家庭团聚见面会的想法_女孩子过生日送女孩子什么礼物
-
全球观察:国旅联合:业绩说明会定于6月16日举行
国旅联合(SH600358,收盘价:5 44元)6月8日晚间发布公告称,公司2022
-
中国电信广东客服最新回应:受影响用户正逐步恢复 世界今头条
南都讯 记者覃仕林6月8日下午,不少深圳市民反映,中国电信广东地区电
-
当前最新:228亿+70亿!三安光电为何要斥巨资押注碳化硅?
北京2023年6月8日 美通社 --《数字中国发展报告(2022年)》发布2022年
-
河蚌怎么做好吃又嫩不会老_河蚌怎么做不硬
1、把河蚌肉用酒瓶子垂几下,特别是河蚌的斧足一定要砸扁,锤扁了再用
-
天天播报:中国家用电风扇行业产量及家用电风扇行业市场调研
家用电风扇行业需要技术升级的方面还有很多。在智能化问题上,虽然智能
-
焦点速递!迈信林:股东拟减持不超1.49%公司股份
证券时报e公司讯,迈信林(688685)6月8日晚间公告,持股1 49%的股东新丝
-
当前热讯:证监会同意两家企业创业板IPO注册
证监会同意哈尔滨敷尔佳科技股份有限公司、深圳市智信精密仪器股份有限
-
男士生日礼物送什么合适_送成功男士这些生日礼物比较合适
如果是送给成功男士,可以买个手表送他。如果是成功男士的,就不要太
-
今热点:高温季来得越来越早,未来10天上海天天冲击35℃
明天(6月9日)是高考最后一天,多云到晴,午后局部地区阴有短时阵雨,
-
新疆若羌:【食安消费提示】市场监管提示您:果蔬上有农药残留,怎么办?|今日讯
助力国家食品安全示范城市创建,2023年上半年若羌县市场监管局加大食品
X 关闭
全球头条:新能源布局加速落子 风电光伏建设正酣
每日速递:气体传感器的发展现状与未来展望
当前速递!国内三大石油企业发布半年报 目光投向新能源
【全球聚看点】如何在智能建筑物联网与隐私之间取得平衡
快资讯:欧洲7月电动汽车销量同比下滑5%
X 关闭
2000 万美元!微软为侵犯儿童隐私买单
江苏单招什么时候考试每年大约报名间2022
小米手机第一次充电要把电用完吗(小米手机电池第一次充电)|天天热文
车钥匙长按锁车键怎么不关窗(名爵5怎么用钥匙关窗?)
河南精准有序调度 跨区作业不误农时丨奔跑的三夏