iOS_NSAttributedString 的21种属性详细介绍(图文混排)

2023-05-16

说明:
NSAttributedString 可以非常方便的实现文字排版和图文混排功能. 共有21中效果(API), 本文将较详细的介绍21种的属性的使用

注: 本博客由@凡俊编写, @Scott, @春雨 审核, 若转载此文章,请注明出处和作者

核心API:

类: NSAttributedString, NSMutableAttributedString
API:

/**
     * API:  Character Attributes , NSAttributedString 共有21个属性
     *
     * 1. NSFontAttributeName               ->设置字体属性,默认值:字体:Helvetica(Neue) 字号:12
     *
     *
     * 2. NSParagraphStyleAttributeName     ->设置文本段落排版格式,取值为 NSParagraphStyle 对象(详情见下面的API说明)
     * 
     * 
     * 3. NSForegroundColorAttributeName    ->设置字体颜色,取值为 UIColor对象,默认值为黑色
     *
     *
     * 4. NSBackgroundColorAttributeName    ->设置字体所在区域背景颜色,取值为 UIColor对象,默认值为nil, 透明色
     * 
     *
     * 5. NSLigatureAttributeName           ->设置连体属性,取值为NSNumber 对象(整数),0 表示没有连体字符,1 表示使用默认的连体字符
     *
     *
     * 6. NSKernAttributeName               ->设置字符间距,取值为 NSNumber 对象(整数),正值间距加宽,负值间距变窄
     *
     *
     * 7. NSStrikethroughStyleAttributeName ->设置删除线,取值为 NSNumber 对象(整数)
     *
     *
     * 8. NSStrikethroughColorAttributeName ->设置删除线颜色,取值为 UIColor 对象,默认值为黑色
     *
     *
     * 9. NSUnderlineStyleAttributeName     ->设置下划线,取值为 NSNumber 对象(整数),枚举常量 NSUnderlineStyle中的值,与删除线类似
     *
     * 
     * 10. NSUnderlineColorAttributeName    ->设置下划线颜色,取值为 UIColor 对象,默认值为黑色
     *
     *
     * 11. NSStrokeWidthAttributeName       ->设置笔画宽度(粗细),取值为 NSNumber 对象(整数),负值填充效果,正值中空效果
     *
     *
     * 12. NSStrokeColorAttributeName       ->填充部分颜色,不是字体颜色,取值为 UIColor 对象
     *
     *
     * 13. NSShadowAttributeName            ->设置阴影属性,取值为 NSShadow 对象
     *
     *
     * 14. NSTextEffectAttributeName        ->设置文本特殊效果,取值为 NSString 对象,目前只有图版印刷效果可用
     *
     *
     * 15. NSBaselineOffsetAttributeName    ->设置基线偏移值,取值为 NSNumber (float),正值上偏,负值下偏
     *
     *
     * 16. NSObliquenessAttributeName       ->设置字形倾斜度,取值为 NSNumber (float),正值右倾,负值左倾
     *
     *
     * 17. NSExpansionAttributeName         ->设置文本横向拉伸属性,取值为 NSNumber (float),正值横向拉伸文本,负值横向压缩文本
     *
     *
     * 18. NSWritingDirectionAttributeName  ->设置文字书写方向,从左向右书写或者从右向左书写
     *
     *
     * 19. NSVerticalGlyphFormAttributeName ->设置文字排版方向,取值为 NSNumber 对象(整数),0 表示横排文本,1 表示竖排文本
     *
     *
     * 20. NSLinkAttributeName              ->设置链接属性,点击后调用浏览器打开指定URL地址
     *
     *
     * 21. NSAttachmentAttributeName        ->设置文本附件,取值为NSTextAttachment对象,常用于文字图片混排
     *
     */

    /**
     * API: NSParagraphStyleAttributeName
     *
     * 值为NSParagraphStyle,设置段落属性,默认值为[NSParagraphStyle defaultParagraphStyle]返回的值。
     *
     * NSMutableParagraphStyleNSParagraphStyle包括一下属性

     * alignment                ->对齐方式
     * firstLineHeadIndent      ->首行缩进
     * headIndent               ->缩进
     * tailIndent               ->尾部缩进
     * lineBreakMode            ->断行方式
     * maximumLineHeight        ->最大行高
     * minimumLineHeight        ->最低行高
     * lineSpacing              ->行距
     * paragraphSpacing         ->段距
     * paragraphSpacingBefore   ->段首空间
     * baseWritingDirection     ->句子方向
     * lineHeightMultiple       ->可变行高,乘因数。
     * hyphenationFactor        ->连字符属性
     */

代码

- (void)creatTitleLabel {

    self.titleLabel = [[UILabel alloc] initWithFrame:CGRectMake(20, 50, 320, 400)];
    self.titleLabel.numberOfLines = 0;
    self.titleLabel.layer.borderColor = [UIColor grayColor].CGColor;
    self.titleLabel.layer.borderWidth = 0.5;
    self.titleLabel.textAlignment = NSTextAlignmentLeft;
    [self.view addSubview:self.titleLabel];

    NSString *string = @"An NSAttributedString object manages character strings and associated sets of attributes (for example, font and kerning) that apply to individual characters or ranges of characters in the string. An association of characters and their attributes is called an attributed string. ";

    /* 这句话就是对这个类的一个最简明扼要的概括。NSAttributedString管理一个字符串,以及与该字符串中的单个字符或某些范围的字符串相关的属性。它有一个子类NSMutableAttributedString
     * 具体实现时,NSAttributedString维护了一个NSString,用来保存最原始的字符串,另有一个NSDictionary用来保存各个子串/字符的属性。
     */


#pragma mark - NSMutableAttributedString 创建
    /* 三种初始化方法,NSMutableAttributedString没有初始化方法,使用父类初始化方法, 使用initWithString:, initWithString:attributes:, 或者 initWithAttributedString: */
    NSAttributedString *attStri = [[NSAttributedString alloc] initWithString:string attributes:@{NSFontAttributeName:[UIFont systemFontOfSize:30]}];

    NSMutableAttributedString *mAttStri = [[NSMutableAttributedString alloc] initWithString:string];


#pragma mark ** 1. NSFontAttributeName 设置字体属性
    /* 字体大小 及 字体类型 */
    NSRange font_range = [string rangeOfString:@"An"];
    [mAttStri addAttribute:NSFontAttributeName value:[UIFont systemFontOfSize:30] range:font_range];
    [mAttStri addAttribute:NSFontAttributeName value:[UIFont fontWithName:@"Courier-BoldOblique" size:17.0] range:NSMakeRange(10, 10)];


#pragma mark ** 2. NSParagraphStyleAttributeName 设置文本段落排版格式
    NSMutableParagraphStyle *style = [[NSMutableParagraphStyle alloc] init];
    style.firstLineHeadIndent = 20;
    style.lineSpacing = 10;

    [mAttStri addAttribute:NSParagraphStyleAttributeName value:style range:NSMakeRange(0, mAttStri.length / 2)];

#pragma mark ** 3. NSForegroundColorAttributeName 设置字体颜色
    /* 值为UIColor,字体颜色,默认为黑色. */
    [mAttStri addAttribute:NSForegroundColorAttributeName value:[UIColor redColor] range:NSMakeRange(0, mAttStri.length)];


#pragma mark ** 4. NSBackgroundColorAttributeName 设置字体所在区域背景颜色
    /* 值为UIColor,字体背景色,默认透明. */
    [mAttStri addAttribute:NSBackgroundColorAttributeName value:[UIColor grayColor] range:NSMakeRange(0, 20)];


#pragma mark ** 5. NSLigatureAttributeName 设置连体属性
    /* 取值为NSNumber 对象(整数). 0 表示没有连体字符, 1 表示使用默认的连体字符. 一般中文用不到,在英文中可能出现相邻字母连笔的情况 */
    [mAttStri addAttribute:NSLigatureAttributeName value:@0 range:NSMakeRange(0, mAttStri.length)];



#pragma mark ** 6. NSKernAttributeName 设置字符间距
    /* 值为浮点数NSNumber,字距属性,默认值为0。*/
    [mAttStri addAttribute:NSKernAttributeName value:@3 range:NSMakeRange(0, mAttStri.length)];



#pragma mark ** 7. NSStrikethroughStyleAttributeName 设置删除线
    /* 值为整型NSNumber,可取值为
        enum {

        NSUnderlineStyleNone = 0×00,

        NSUnderlineStyleSingle = 0×01,

        }; 设置删除线。
    */
    [mAttStri addAttribute:NSStrikethroughStyleAttributeName value:@3 range:NSMakeRange(3, 7)];


#pragma mark ** 8. NSStrikethroughColorAttributeName 设置删除线颜色
    /* 这个属性的值是一个UIColor对象. */
    [mAttStri addAttribute:NSStrikethroughColorAttributeName value:[UIColor blueColor] range:NSMakeRange(3, 3)];


#pragma mark ** 9. NSUnderlineStyleAttributeName 设置下划线
    /* 取值为 NSNumber 对象(整数),枚举常量 NSUnderlineStyle中的值,与删除线类似 */
    [mAttStri addAttribute:NSUnderlineStyleAttributeName value:@2 range:NSMakeRange(6, 5)];


#pragma mark ** 10. NSUnderlineColorAttributeName 设置下划线颜色
    /* 这个属性的值是一个UIColor对象.默认值为nil. */
    [mAttStri addAttribute:NSUnderlineColorAttributeName value:[UIColor blackColor] range:NSMakeRange(6, 5)];



#pragma mark ** 11. NSStrokeWidthAttributeName 设置笔画宽度(粗细)
    /* 值为浮点数NSNumber。设置笔画的粗细。负值填充效果,正值中空效果. */
    [mAttStri addAttribute:NSStrokeWidthAttributeName value:@10 range:NSMakeRange(50, 30)];


#pragma mark ** 12. NSStrokeColorAttributeName 填充部分颜色,
    /* 不是字体颜色,取值为 UIColor 对象 默认值为nil,设置的属性同ForegroundColor。*/
    [mAttStri addAttribute:NSStrokeColorAttributeName value:[UIColor orangeColor] range:NSMakeRange(50, 20)];


#pragma mark ** 13. NSShadowAttributeName 设置阴影属性

    /* 值为NSShadow,设置笔画的阴影,默认值为nil。*/
    NSShadow *shadow = [[NSShadow alloc]init];
    shadow.shadowOffset = CGSizeMake(10, 10);
    shadow.shadowColor = [UIColor greenColor];
    [mAttStri addAttribute:NSShadowAttributeName value:shadow range:NSMakeRange(20, 10)];


#pragma mark ** 14. NSTextEffectAttributeName 设置文本特殊效果
    /* 这个属性的值是一个NSString对象。使用此属性指定的文字效果,如NSTextEffectLetterpressStyle。此属性的默认值为nil,表示没有文本效应。*/
    [mAttStri addAttribute:NSTextEffectAttributeName value:NSTextEffectLetterpressStyle range:NSMakeRange(80, 10)];



#pragma mark ** 15. NSBaselineOffsetAttributeName 设置基线偏移值
    /* 此属性的值是包含一个浮点值的NSNumber对象,表示的字符从基线偏移的NSNumber对象,默认值是0。正值上偏,负值下偏 */
    [mAttStri addAttribute:NSBaselineOffsetAttributeName value:@5 range:NSMakeRange(112, 10)];


#pragma mark ** 16. NSObliquenessAttributeName 设置字形倾斜度取值为 NSNumber (float),正值右倾,负值左倾
    /* 此属性的值是包含一个浮点值的NSNumber对象。默认值为0,表示没有倾斜, 正值右倾,负值左倾。 */
    [mAttStri addAttribute:NSObliquenessAttributeName value:@0.8 range:NSMakeRange(135, 15)];


#pragma mark ** 17. NSExpansionAttributeName 设置文本横向拉伸属性
    /* 取值为 NSNumber(float), 正值横向拉伸文本, 负值横向压缩文本 */
    NSRange range =  [string rangeOfString:@"An association of"];
    [mAttStri addAttribute:NSExpansionAttributeName value:@1.0 range:range];



#pragma mark ** 18. NSWritingDirectionAttributeName 设置文字书写方向
    /** 
     * 取值为包含NSNumber对象的数组. 从左向右书写或者从右向左书写.
     *
     * The values of the NSNumber objects should be 0, 1, 2, or 3, for LRE, RLE, LRO, or RLO respectively, and combinations of NSWritingDirectionLeftToRight and NSWritingDirectionRightToLeft with NSTextWritingDirectionEmbedding or NSTextWritingDirectionOverride, as shown in Values of NSWritingDirectionAttributeName and equivalent markup.

     */
    NSRange rang2 = [string rangeOfString:@"characters and their"];
    [mAttStri addAttribute:NSWritingDirectionAttributeName value:@[@3] range:rang2];



#pragma mark ** 19. NSVerticalGlyphFormAttributeName 设置文字排版方向
    /**
     * 值为整型NSNumber,0为水平排版的字,1为垂直排版的字。注意,在iOS中, 总是以横向排版
     *
     * In iOS, horizontal text is always used and specifying a different value is undefined.
     */
    [mAttStri addAttribute:NSVerticalGlyphFormAttributeName value:@1 range:NSMakeRange(1, 10)];



#pragma mark ** 20. NSLinkAttributeName 设置链接属性
    /**
     * 此属性的值是NSURL对象(首选)或一个NSString对象。此属性的默认值为nil,表示没有链接。
     * UILabel无法使用该属性, 可以使用UITextView 控件.
     */
    UITextView *textView = [[UITextView alloc] initWithFrame:CGRectMake(20, 450, 320, 60)];
    [self.view addSubview:textView];
    textView.backgroundColor  = [UIColor lightGrayColor];


    NSString *strLink = @"百度链接";
    NSAttributedString *attStr  = [[NSAttributedString alloc] initWithString:strLink attributes:@{NSLinkAttributeName: [NSURL URLWithString:@"http://www.baidu.com"]}];

    textView.editable = NO;

    /* 签订协议, 指定代理人之后. 但点击链接时, 会回调协议方法 (- textView:shouldInteractWithURL:inRange:) */
    textView.delegate = self;

    textView.attributedText = attStr;


#pragma mark ** 21. NSAttachmentAttributeName 设置文本附件
    /* 这个属性的值是一个NSTextAttachment对象。此属性的默认值为nil,表示无附件。*/

    /**
     * 关于NSTextAttachment类的简单说明
     *
     * NSTextAttachment 类有一个指定的初始化方法(- initWithData:ofType:), 需要指定附件文档的数据和附件文件的类型. 如果附件文档数据指定nil, 那么系统将会默认指定为image对象作为值. 因此, 也可以通过这个特性实现图文混排.
     * 下面就以附件为image对象来说明NSAttachmentAttributeName的使用.
     *
     */

    UILabel *label = [[UILabel alloc] initWithFrame:CGRectMake(20, 550, 320, 60)];
    label.backgroundColor = [UIColor yellowColor];
    [self.view addSubview:label];


    /* 下面实现在百度两个汉字之间插入一个照片 */
    NSString *stiAtt = @"百度";

    NSTextAttachment *attach = [[NSTextAttachment alloc] initWithData:nil ofType:nil];
    attach.bounds = CGRectMake(0, 0, 50, 50);
    attach.image = [UIImage imageNamed:@"baidu.jpg"];

    NSAttributedString *strAtt = [NSAttributedString attributedStringWithAttachment:attach];

    NSMutableAttributedString *strMatt = [[NSMutableAttributedString alloc] initWithString:stiAtt];

    [strMatt insertAttributedString:strAtt atIndex:1];

    label.attributedText = strMatt;

    self.titleLabel.attributedText = mAttStri;
    [self.titleLabel sizeToFit];

}


#pragma mark - textView delegate 
- (BOOL)textView:(UITextView *)textView shouldInteractWithURL:(NSURL *)URL inRange:(NSRange)characterRange {

    NSLog(@"%s", __func__);
    NSLog(@"url: %@", URL);
    return YES;
}

Demo的链接地址

本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)

iOS_NSAttributedString 的21种属性详细介绍(图文混排) 的相关文章

  • Navicat For MongoDB安装及破解

    安装包转载网址 xff1a https blog csdn net qq 40737025 article details 82919700 baidu云 请求头自己加上中间有中文就自己去掉 xff0c 防止屏蔽 pan baidu com
  • C# Winform应用程序调用Microsoft RDP client control实现远程连接(VS2013)

    试了好一会 xff0c 终于成功了 xff01 先说问题 xff1a 1 控件已成功添加到工具箱中 但未在活动设计器中启用 注册控件 xff1a regsvr32 C Windows System32 mstscax dll VS2013提
  • C++中枚举enum详解

    转载博客地址 xff1a https blog csdn net bruce 0712 article details 54984371 众所周知 xff0c C C 43 43 语言可以使用 define和const创建符号常量 xff0
  • Android Rust JNI系列教程(一) 环境配置

    序 本系列文章将从rust环境搭建开始 逐步带大家了解使用rust进行Android JNI开发的基本技能 相关文章共分为如下几步 Rust JNI环境搭建 创建第一个Rust JNI项目Rust与Android互相调用Rust 调用And
  • 私人网盘nextcloud配置问题解决

    安装流程 配置流程非常简单 xff0c 主要是参考了下面这篇博文配置 xff0c 在宝塔面板下安装nextcloud xff0c 非常简单 博文跳转 https www vpsss net 5780 html 大概总结以下步骤 xff1a
  • Linux下使用rclone挂载网盘到本地

    Linux下使用rclone挂载网盘到本地 Rclone是一个支持挂载多数国外网盘的工具 Rclone官网传送们 目前Rclone支持挂载的网盘有 xff1a Google Drive Dropbox Google Cloud Storag
  • kvm 虚拟化安装 Ubuntu 18.04 server

    本文续上篇 裸金属服务器 kvm 虚拟化安装 win10 继续记录使用 KVM 在 Centos 7 5 裸金属服务器上安装 Ubuntu 18 04 Server的过程及遇到的问题 资源准备 首先要配置好 KVM 环境 xff0c 上文已
  • 创建回调函数

    1 新建一个空的工程 xff0c 在工程中随便创建一个类 xff0c 比如 h文件 import lt UIKit UIKit h gt typedef void resultBlock void 64 interface MyView U
  • 虚拟机的复制

    虚拟机的复制 xff08 1 xff09 虚拟机复制需要的两个重要文件 etc libvirt qemu xml文件 虚拟机的配置文件 xff0c 前端管理文件 xff0c 可以使用前端文件回到相应位置寻找后端硬盘文件 var lib li
  • 关于C++循环依赖问题的理解

    简介 如果有两个类 xff0c 类A和类B xff0c A类中有一个B类的对象b作为数据成员 xff0c B类中又有一个A类对象a作为数据成员 xff0c 像这样的情况就叫做循环依赖 那么如何解决类之间的循环依赖问题呢 xff1f 代码实例
  • AndroidStudio配置maven阿里云镜像

    写1行不行 xff0c 要写5行 xff0c 不要写 jcenter google xff0c 半天完不了 Android配置maven阿里云镜像 海阔天空185的博客 CSDN博客 android maven 阿里云 buildscrip
  • Android获取设备唯一标识

    一 IMEI xff1a 国际移动设备识别码的缩写 xff0c 其总长为15位 xff0c 每位数字仅使用0 xff5e 9的数字 双卡双待会有两个IMEI值 xff0c 并且在Android10以后就无法获取到了 xff0c 而且在模拟器
  • 排序之冒泡排序

    话不多说先上代码 package main import 34 fmt 34 func bubleSort arr 5 int for i 61 0 i lt len arr 1 i 43 43 for j 61 0 j lt len ar
  • 如何深入理解计算机视觉?(附思维导图)

    点上方蓝字计算机视觉联盟获取更多干货 在右上方 设为星标 xff0c 与你不见不散 编辑 xff1a Sophia 联盟学习笔记 计算机视觉联盟 报道 公众号 CVLianMeng 人工智能资源 xff08 书籍 43 视频 xff09 全
  • 汇编语言指令详解

    指令 xff08 instruction xff09 是一种语句 xff0c 它在程序汇编编译时变得可执行 汇编器将指令翻译为机器语言字节 xff0c 并且在运行时由 CPU 加载和执行 一条指令有四个组成部分 xff1a 标号 xff08
  • fprintf 输出矩阵到txt的方法

    a 61 1 2 3 4 5 6 是一个2 3矩阵 1 2 3 4 5 6 fid 61 fopen 39 d chr txt 39 39 wt 39 本命令用法网上可以查到 xff0c 帮助文件里讲的也很清楚 fprintf fid 39
  • Android重新挂载镜像文件或者分区为光盘模式,让电脑能够识别并可读写(android cdrom by driverdroid)

    旧版本安卓实现 通常指Android8以下 span class token builtin class name cd span sys class android usb android0 span class token builti
  • 阿里云服务器申请免费试用图文教程(个人和企业均可申请)

    文章目录 一 进入阿里云使用中心二 根据自己账户认证情况选择进入 xff0c 个人选择开发者使用中心 xff0c 企业用户选择企业使用中心 个人基本试用配置 xff1a 企业基本试用配置 xff1a 三 本次以个人开发者 申请流程 1 需要
  • 钡铼技术BL302 ARM工控机QT图形化界面开发的实践

    QT是一种跨平台的应用程序框架 xff0c 用于开发图形用户界面 GUI 网络应用程序和嵌入式应用程序 QT提供了丰富的GUI组件和工具 xff0c 使开发人员能够轻松地创建专业级别的应用程序 QT使用C 43 43 编写 xff0c 支持
  • Ubuntu WSL Docker 踩坑记录:Cannot connect to the Docker daemon at unix:///var/run/docker.sock

    问题 xff1a VSCode WSL xff0c docker指令无效 xff0c 提示Cannot connect to the Docker daemon at unix var run docker sock Is the dock

随机推荐

  • 试用 GitLab 14 以及中国发行版:极狐

    时值 GitLab 14 大版本更新 xff0c 官方对于这个版本给出了非常高的评价 xff0c 让我非常好奇 xff0c 所以为了探究新版本到底有哪些变化 xff0c 我对 GitLab 社区版 极狐版做了试用对比 写在前面 作为一个 G
  • Debian 搭建简单的 FTP 服务器

    Debian 搭建简单的 FTP 服务器 安装配置 1 安装 apt get install vsftpd 2 查看网络服务状态 netstat npl 显示结果 tcp6 span class hljs number 0 span spa
  • 什么是XCB

    lt 64 page margin 2cm P margin bottom 0 21cm gt 简单看了下XCB的功能 xff0c 作用 xff0c 大致总结如下 xff0c 不知道是否正确 暂时如此理解吧 XCB 是用来替代Xlib 当期
  • 怎么压缩pdf文档大小?在线pdf压缩工具分享

    大多数公司使用 PDF 格式文档来共享信息 存储文件 传递数据等等 xff0c 但是由于PDF文档体积较大 xff0c 上传和下载速度较慢 xff0c 限制了PDF文档的使用 xff0c 那么这时候就需要用到pdf压缩 xff08 http
  • 【教程&工具】微信同步文章到Bear

    在我日常工作中 xff0c 我会将各种互联网以及生活中产出的信息汇总到Bear xff0c 再通过Bear的云同步使我各个终端的信息保持一致 以前在使用有道云笔记的时候 xff0c 有个功能我很喜欢 xff0c 就是当看到一篇想收藏的文章的
  • CentOS7分布式部署pyspider

    1 搭建环境 xff1a 系统版本 xff1a 96 Linux centos linuxpython版本 xff1a span class typ Python span span class lit 3 5 span span clas
  • 各类python包的安装方法及设置安装路径

    python拥有非常丰富的扩展包 xff0c 下面介绍常见的扩展包安装方法 使用Anaconda集成环境 通过使用该python的集成环境 xff0c 可以解决大部分常见包的安装以相互依赖问题 下载地址为 xff1a https www c
  • 如何取出列表内元组中的字典的key和value

    目录标题 一 从列表中取出字典的key和value二 取出列表内元组中的字典的key和value 一 从列表中取出字典的key和value 例 list 1 span class token operator 61 span span cl
  • 树莓派远程桌面连接出现Connection Problem, giving up

    树莓派4B xff0c 使用官方imager刷系统 xff0c 系统为当下最新的2022 01 28 raspios bullseye armhf xff0c 结果发现使用远程桌面登录时 xff0c 在输入用户名和密码后 xff0c 界面无
  • you-get 下载bilibili视频

    bilibili查看视频清晰度 you get i url https www bilibili com video BV17z411i7er p 61 1 debug 下载视频 you get format 61 flv1080 http
  • 解决“AttributeError: ‘str‘ object has no attribute ‘decode‘”问题

    问题描述 在跑代码的时候出现报错提示 Traceback most recent call last File 34 multi detect Nerual py 34 line 4 in lt module gt import BiLST
  • NGINX 进程通信机制

    本文地址 xff1a http blog csdn net spch2008 article details 38945033 nginx的进程通信分为三种类别 xff1a linux 系统与nginx 通信 xff0c master 进程
  • Could not find main class com/intellij/idea/Main

    Could not find main class com intellij idea Main 下载完Pycharm xff0c 打开时显示Could not find main class com intellij idea Main
  • 记事本里打“联通”为什么会变成乱码?

    记事本的编码问题 xff0c 当文档中所有字符都在 C0 AA DF 80 BB BF 这个范围的时候 xff0c notepad都无法确认文档的格式 xff0c 没有自动按照UTF 8格式来 34 Display 34 34 联通 34
  • 思博伦Spirent Testcenter交换机性能测试主要技术指标_丢帧率/吞吐量/转发速率之间的关系_双极未来

    转发速率 丢帧率和吞吐量是描述交换机转发性能的主要技术指标 xff0c 这些指标的测试结果可以客观地反映出被测交换机的性能 正确理解它们之间的联系与区别对于设计吞吐量 丢帧率和转发速率的测试方法非常重要 如下图所示 xff0c X轴表示 x
  • OpenStack-Ceilometer项目功能与架构介绍

    1 OpenStack Ceilometer项目简介 OpenStack通过Telemetry项目提供计量与监控服务 xff0c 该项目旨在针对组成已部署云的物理和虚拟资源 xff0c 可靠地收集并保存各类使用数据 xff0c 以便对这些数
  • redhat 查询端口占用

    linux redhat 端口和服务的查看与终止 redhat 查询端口占用情况和杀死占用的服务 netstat anp grep lt 端口号或者程序名称 gt 查8080端口占用情况 netstat anp grep 8080 查jav
  • mapl

    business card case executive veto power anime stream radio johann strauss black layout pink star job interview question
  • Knowledge Tracing: A Survey阅读笔记

    xff08 注 xff1a 为了方便后续阅读KT论文 xff0c 文中一些名词使用英文 文中保留的序号与原论文参考文献一致 行文会在后续反刍过程中改进 xff09 原文链接 xff1a https arxiv org abs 2201 06
  • iOS_NSAttributedString 的21种属性详细介绍(图文混排)

    说明 NSAttributedString 可以非常方便的实现文字排版和图文混排功能 共有21中效果 API 本文将较详细的介绍21种的属性的使用 注 本博客由 64 凡俊编写 64 Scott 64 春雨 审核 若转载此文章 请注明出处和