python笔记

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

-- coding: utf-8 --

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

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

posted @ 2021-08-02 19:23  strongdady  阅读(21)  评论(0编辑  收藏  举报