目录
7节-开发出第一个Python程序:
1.在cmd窗口写下第一个最简单的程序:Hello World!!!
9节:
1.如何卸载python:
2.报错:不是可运行的程序
编辑
3.报错:无法初始化设备PRN:
4.报错:语法错误——非法的字符
10节-python解释器:
1.python解释器的原理:
2.解释器程序在哪:
3.cmd窗口中,调用Python解释器只能一行一行的去运行,有其他方法:
博主累了一天,想对自己说点什么:
7节-开发出第一个Python程序:
1.在cmd窗口写下第一个最简单的程序:Hello World!!!
所以我只能全部用英文输入了,不知道为什么cmd窗口用不了中文输入,只能输入英文,唉!!以前还可以的,真糟心!
Microsoft Windows [版本 10.0.26100.3775]
(c) Microsoft Corporation。保留所有权利。C:\Users\gpy13>Python
Python 3.12.2 (tags/v3.12.2:6abddd9, Feb 6 2024, 21:26:36) [MSC v.1937 64 bit (AMD64)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>> print('Hello World!!!!!!')
Hello World!!!!!!
>>> chcp 936File "<stdin>", line 1chcp 936^^^
SyntaxError: invalid syntax
>>> chcp 65001File "<stdin>", line 1chcp 65001^^^^^
SyntaxError: invalid syntax
>>> print(”python in windows's cmd ,you can't use chinese!you mother_fucker bastard!you assshole!Fuck you python&cmd!“)File "<stdin>", line 1print(”python in windows's cmd ,you can't use chinese!you mother_fucker bastard!you assshole!Fuck you python&cmd!“)^
SyntaxError: invalid character '”' (U+201D)
>>> print("python in windows's cmd ,you can't use chinese!you mother_fucker bastard!you assshole!Fuck you python&cmd!")
python in windows's cmd ,you can't use chinese!you mother_fucker bastard!you assshole!Fuck you python&cmd!
>>> print('Zero basic!Learn IT!Monthly salary over than 10000¥!Come to quickly IT-heima!!!')
Zero basic!Learn IT!Monthly salary over than 10000¥!Come to quickly IT-heima!!!
>>>
AUV!!!书接上回!
下午睡了一觉起来,打开睡眠中的电脑,自己就好了。WTF??
好吧!可能电脑早晨闹情绪吧~
反正下午的cmd窗口直接可以输入中文了。
9节:
1.如何卸载python:
在设置的应用中搜索python卸载,然后重新再去官网中安装一遍就好了~