Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
Administrator
/
lesson16_4
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Members
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
3732087c
authored
May 21, 2023
by
BellCodeEditor
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
auto save
parent
04dc5126
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
60 additions
and
0 deletions
wfd.py
wfd.py
0 → 100644
View file @
3732087c
# import abc
# class pet(metaclass=abc.ABCMeta):
# def __init__(self,name,age):
# self.name = name
# self.age = age
# @abc.abstractmethod
# def meaalpay(self):
# pass
# class Dog(pet):
# def mealPay(self,name):
# print(f"我是一只狗")
# money = 1*4*30
# print(f"我每月要{money}")
# class Cat(pet):
# def mealPay(self,name):
# print(f"我是一只猫")
# money = 1*4*30
# print(f"我每月要{money}")
# class pig(pet):
# def mealPay(self,name):
# print(f"我是一只猪")
# money = 1*4*30
# print(f"我每月要{money}")
# while True:
# print("花费计算:\n1,狗狗\n,猫猫\n,猪猪")
# choice = input("请输入您的选择(输0退出)")
# if choice == "0":
# print("已退出")
# break
# if choice == "1":
# d1 = Dog("大壮,3")
# d1.meaalpay(d1.name)
# elif choice == "2":
# c1 = Dog("圆圆,2")
# c1.meaalpay(c1.name)
# elif choice == "3":
# p1 = Dog("圆d,2")
# p1.meaalpay(p1.name)
# else:
# print("有误")
import
pandas
as
pd
import
numpy
as
numpy
import
matplot
as
plt
df
=
pd
.
read_excel
(
"text5.xlsx"
)
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment