打开文件,并写入文字


replace的用法
replace(要替换的部分,将要换成什么字符)

format的用法


內建函数
各函数介绍连接:https://docs.python.org/3/library/functions.html

打印分开

sep='\n'
数据结构


(1)列表list
a.insert(位置,插入对象), a.remove(删除对象), apend(加入对象), del a[0]

(2)字典dictonary





第三方库网址:
http://awesome-python.com/#websites
网友评论