• linkedu视频
  • 平面设计
  • 电脑入门
  • 操作系统
  • 办公应用
  • 电脑硬件
  • 动画设计
  • 3D设计
  • 网页设计
  • CAD设计
  • 影音处理
  • 数据库
  • 程序设计
  • 认证考试
  • 信息管理
  • 信息安全
菜单
linkedu.com
  • 网页制作
  • 数据库
  • 程序设计
  • 操作系统
  • CMS教程
  • 游戏攻略
  • 脚本语言
  • 平面设计
  • 软件教程
  • 网络安全
  • 电脑知识
  • 服务器
  • 视频教程
  • vbs
  • DOS/BAT
  • hta/htc
  • python
  • perl
  • VBA
  • ColdFusion
  • ruby
  • PowerShell
  • Lua
  • Golang
  • linux shell
您的位置:首页 > 脚本语言 >python > Python中输出ASCII大文字、艺术字、字符字小技巧

Python中输出ASCII大文字、艺术字、字符字小技巧

作者:junjie 字体:[增加 减小] 来源:互联网

junjie 通过本文主要向大家介绍了python 字符转ascii,python ascii转换,python ascii,python 字符串转ascii,python ascii转中文等相关知识,希望对您有所帮助,也希望大家支持linkedu.com www.linkedu.com

display text in large ASCII art fonts
显示大ASCII艺术字体
</div>
这种东西在源码声明或者软件初始化控制台打印时候很有用。
例如下图:

这是查看HTML源码中截图而来,看到这种字体的网站名称,很cool,下面就介绍一下Python中如何输出这种字符字。
$ sudo apt-get install figlet
$ figlet orangleliu
                            _      _ _      
  ___  _ __ __ _ _ __   __ _| | ___| (_)_   _
 / _ \| '__/ _` | '_ \ / _` | |/ _ \ | | | | |
| (_) | | | (_| | | | | (_| | |  __/ | | |_| |
 \___/|_|  \__,_|_| |_|\__, |_|\___|_|_|\__,_|
</div>
python中也有这个工具的实现
$ sudo pip install pyfiglet
$ pyfiglet orangleliu.info
                             _      _ _         _        __      
  ___  _ __ __ _ _ __   __ _| | ___| (_)_   _  (_)_ __  / _| ___ 
 / _ \| '__/ _` | '_ \ / _` | |/ _ \ | | | | | | | '_ \| |_ / _ \
| (_) | | | (_| | | | | (_| | |  __/ | | |_| |_| | | | |  _| (_) |
 \___/|_|  \__,_|_| |_|\__, |_|\___|_|_|\__,_(_)_|_| |_|_|  \___/
</div>
参考这个回答
http://stackoverflow.com/questions/9632995/is-there-a-python-library-that-allows-to-easily-print-ascii-art-text

</div>

您可能想查找下面的文章:

  • Python中输出ASCII大文字、艺术字、字符字小技巧

相关文章

  • Windows下Python的Django框架环境部署及应用编写入门
  • 给Python的Django框架下搭建的BLOG添加RSS功能的教程
  • python实现的阳历转阴历(农历)算法
  • python同义词替换的实现(jieba分词)
  • Python使用scrapy抓取网站sitemap信息的方法
  • 解决pyqt中ui编译成窗体.py中文乱码的问题
  • 用Python解析XML的几种常见方法的介绍
  • php使用递归与迭代实现快速排序示例
  • Python使用ftplib实现简易FTP客户端的方法
  • python3使用urllib示例取googletranslate(谷歌翻译)

文章分类

  • vbs
  • DOS/BAT
  • hta/htc
  • python
  • perl
  • VBA
  • ColdFusion
  • ruby
  • PowerShell
  • Lua
  • Golang
  • linux shell

最近更新的内容

    • Python实现文件复制删除
    • 使用python检测主机存活端口及检查存活主机
    • 使用Protocol Buffers的C语言拓展提速Python程序的示例
    • 使用Python对SQLite数据库操作
    • Python编程之event对象的用法实例分析
    • Python 性能优化技巧总结
    • python解析xml文件操作实例
    • Python中实现对Timestamp和Datetime及UTC时间之间的转换
    • python实现折半查找和归并排序算法
    • python集合类型用法分析

关于我们 - 联系我们 - 免责声明 - 网站地图

©2020-2025 All Rights Reserved. linkedu.com 版权所有