python笔记

1,运行:在命令行输入py,退出: type in quit(),or CTRL+z
2 声明字符集的语法# -- coding: encoding --

-- coding: utf-8 --

3 在命令行状态下,输入多行程序后,以一个空行结束,并让解释器运行上面的程序
4 #开始注释行
5特殊字符

print('C:some ame') # here means newline!
C:some
ame
print(r'C:some ame') # note the r before the quote
C:some ame

原文地址:https://www.cnblogs.com/strongdady/p/15091343.html