龙空技术网

零基础入门学习Python(二):小游戏和字体更换

LearningYard学苑 76

前言:

此刻小伙伴们对“python如何更改字体”大概比较讲究,朋友们都需要学习一些“python如何更改字体”的相关文章。那么小编在网络上收集了一些对于“python如何更改字体””的相关资讯,希望朋友们能喜欢,你们快快来学习一下吧!

分享兴趣,传播快乐,

增长见闻,留下美好!

亲爱的您,这里是LearningYard新学苑。

今天小编为大家带来的是

零基础入门学习Python(二):

小游戏和字体更换

Share interest,

spread happiness,

increase knowledge,

and leave beautiful.

Dear, this is the LearingYard Academy!

Today, the editor brings the

“Zero Basics Introduction to Python (2): Mini Games and Font Replacement”.

Welcome to visit!

一、思维导图

此推文关于零基础入门学习Python系列的内容主要如下:

The main content of this tweet about the exercise series is as follows:

本次推文通过语法知识和案例的结合来为大家讲解Python,但需要注意的是代码还是需要经常敲才能熟练。

This tweet combines grammar knowledge and case studies to explain Python to everyone, but it should be noted that the code still requires frequent typing to become proficient.

二、设计第一个小游戏

首先我们需要打开IDLE,然后点击菜单栏上的File,接着点击New file,之后就会跳出来一个新的窗口,然后我们需要输入以下代码。需要注意的是输入法必须是英文输入法。

Firstly, we need to open IDLE, then click on File on the menu bar, then click on New file, and a new window will pop up. Then, we need to input the following code. It should be noted that the input method must be English.

输入完成后,按Ctrl+s快捷键保存,设置文件名game.py。点击Run,然后再点击Run Moudle开始运行:

After completing the input, press the Ctrl+s shortcut key to save and set the file name game.py. Click on Run, then click on Run Moudle to start running:

三、字体更改和内置函数

(一)让中英文区别更加明显

依次点击Options,Configure IDLE,Consolas(可随意选择字体样式)

(1) Make the difference between Chinese and English more obvious

Click on Options, Configure IDLE, Consolas (font style can be freely selected)

(二)查看内置函数

在新窗口输入以下代码:

(2) View Intrinsic function

Enter the following code in the new window:

运行结果:

Running results:

今天的分享就到这里了。

如果您对今天的文章有独特的想法,

欢迎给我们留言,

让我们相约明天,

祝您今天过得开心快乐!

That's all for today's sharing.

If you have a unique idea about the article,

please leave us a message, and let us meet tomorrow.

I wish you a nice day!

翻译:百度翻译

参考:百度、哔哩哔哩

声明:本文由LearningYard新学苑原创,若有侵权请联系删除

文案&排版:易春秀

审核:许江越

标签: #python如何更改字体 #如何修改python字体 #python在哪改字体 #怎么更改python的字体