随笔分类 -  Python学习

学点新东西
Python学习(二) 格式化数据
摘要:python格式化字符串方式有两种 %和format1、百分号方式:%[(name)][flags][width].[precision]typecode2、format方式:[[fill]align][sign][#][0][width][,][.precision][type] 百分号方式:%[ 阅读全文

posted @ 2019-01-14 16:23 新手vs中华 阅读(186) 评论(0) 推荐(0)

Python学习(一) 从print开始
摘要:print(*objects, sep=’ ‘, end=’\n’, file=sys.stdout, flush=False) 如 输出:test1/test2/test3/test4 换行 到D:\test.txt文件中 阅读全文

posted @ 2019-01-11 16:28 新手vs中华 阅读(243) 评论(0) 推荐(0)

导航