Python入门-基础语法笔记

1.vi技巧: 中英切换:shift wq = xjava 2.注释 单行:# 多行:三个单引号或三个双引号python """ print("hello world") """ 3.编码 文件中有中文,无论是否为注释,python2执行报错。 解决:程序首行加 #coding=utf-8 或 #*-* coding:utf-8 *-*c++ 4.输入 name = input("请输入名字:")
相关文章
相关标签/搜索