
Python3
songsongv5
No pain , no gain
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
20190605 类的单继承
class People: name='' age=0 __weight=0 # 私有属性外部无法直接访问 def __init__(self,n,a,w): self.name=n self.age=a self.__weight=w def speak(self): print('%s...原创 2019-06-05 20:11:51 · 176 阅读 · 0 评论 -
20190612 python3 操作excel文件
#encoding=utf-8 from openpyxl import Workbook from openpyxl import load_workbook wb=Workbook() ws=wb.active ws.append(['Name','Sex','Age']) ws.append(('Tom','male','29')) ws.append(('Lily','female',...原创 2019-06-12 21:10:32 · 200 阅读 · 0 评论 -
20190610 计账
#encoding=utf-8 import pickle income = [] spend = [] deposit = 0.0 while 1: command = input("请输入收入、支出和金额,如: 支出>50,输入q退出: ") if command.lower() == "q": break try: amou...原创 2019-06-10 02:14:43 · 218 阅读 · 0 评论 -
20190611 Python3 操作excel文件
#encoding=utf-8 from openpyxl import * file_name='D:/songhuajie/efforts/Python/testexcel.xlsx' exist_file='D:/songhuajie/efforts/Python/testdata.xlsx' #1创建文件并写入数据 wb= Workbook() #创建Excel对象 ws=wb.a...原创 2019-06-11 20:57:52 · 172 阅读 · 0 评论