一、下载python
按箭头去做:





下载完成后解压并打开
一直点下一步即可
二、编译器
(1)、自带的IDLE
它位于python-Lib-idlelib里
它体积小,但不能代码补全
(2)、pycharm
自己去jetbrains.com网站去下吧
链接:https://www.jetbrains.com/pycharm/download
三、最后
送大家一个小礼物,复制以下代码到python,有'惊喜'!
# -*- coding: utf-8 -*-
import Tkinter as tk
import random
c=10
while c>1:
a=random.randint(1,800)
b=random.randint(1,800)
a_=str(a)
b_=str(b)
root = tk.Tk()
root.title("Windows")
root.geometry("200x150"+"+"+a_+"+"+b_)
Label = tk.Label(root, text='\n\n\n 你的电脑已中毒')
Label.grid()
root.mainloop()
如果你的Python是3.x的
复制这个
# -*- coding: utf-8 -*-
import tkinter as tk
import random
c=10
while c>1:
a=random.randint(1,800)
b=random.randint(1,800)
a_=str(a)
b_=str(b)
root = tk.Tk()
root.title("Windows")
root.geometry("200x150"+"+"+a_+"+"+b_)
Label = tk.Label(root, text='\n\n\n 你的电脑已中毒')
Label.grid()
root.mainloop()
本文介绍了如何下载Python,包括从官网获取并安装的过程,以及推荐使用自带的IDLE和第三方IDEPyCharm。还提供了一个简单的Tkinter示例和注意事项,特别是针对Python3.x用户。
7183

被折叠的 条评论
为什么被折叠?



