Posted in Python onSeptember 01, 2020
WARNING:低技术力
自己无聊写的
哥特字体是最好看的:
示例代码:
#!usr/bin/env python3 # -*- coding:UTF-8 -*- s=input() d={"A":'?', "B":'?', "C":'ℭ', "D":'?', "E":'?', "F":'?', "G":'?', "H":'ℌ', "I":'ℑ', "J":'?', "K":'?', "L":'?', "M":'?', "N":'?', "O":'?', "P":'?', "Q":'?', "R":'ℜ', "S":'?', "T":'?', "U":'?', "V":'?', "W":'?', "X":'?', "Y":'?', "Z":'ℨ', "a":'?', "b":'?', "c":'?', "d":'?', "e":'?', "f":'?', "g":'?', "h":'?', "i":'?', "j":'?', "k":'?', "l":'?', "m":'?', "n":'?', "o":'?', "p":'?', "q":'?', "r":'?', "s":'?', "t":'?', "u":'?', "v":'?', "w":'?', "x":'?', "y":'?', "z":'?'} s1="" def BL(s): global s1 global d for a in s: try: v=d[a] except KeyError: v=a s1=s1+v return s1 s=BL(s) print(s)
总结
到此这篇关于Python3实现英文字母转换哥特式字体的文章就介绍到这了,更多相关Python3英文字母转哥特式字体内容请搜索三水点靠木以前的文章或继续浏览下面的相关文章希望大家以后多多支持三水点靠木!
Python3实现英文字母转换哥特式字体实例代码
- Author -
GalacticRepublic声明:登载此文出于传递更多信息之目的,并不意味着赞同其观点或证实其描述。
Reply on: @reply_date@
@reply_contents@