MoneyBank:用于超市软件的CashMachine:money_bag:

时间:2024-03-09 07:26:10
【文件属性】:

文件名称:MoneyBank:用于超市软件的CashMachine:money_bag:

文件大小:16KB

文件格式:ZIP

更新时间:2024-03-09 07:26:10

Python

货币银行 适用于超市软件的CashMachine :money_bag: 如何测试 克隆存储库 运行tests.py 如何使用它 import src . main as bank machine = bank . MoneyBank ([ 1 , 1 , 0.5 , 0.5 , 0.2 ]) # Pieces available in your cash machine # Make a payment machine . pay ([ 2 , 1 ], 2.5 ) # Pieces the customer gave, price of the product """ Will return (0, [0.5]) O is the money you still have to give if you does not have enough money in your machine [


【文件预览】:
MoneyBank-master
----.github()
--------workflows()
----LICENSE(34KB)
----src()
--------models()
--------main.py(3KB)
----database.db(8KB)
----.gitignore(55B)
----tests.py(1KB)
----README.md(744B)

网友评论