示例#1
0
##入口
import send_money
import select_money

if __name__ == '__main__':
    send_money.send_money()
    select_money.select_money()
示例#2
0
'''
原有存款 1000元, 发工资之后存款变为2000元
定义模块
1、money.py saved_money = 1000
2、定义发工资模块 send_money,用来增加收入计算
3、定义工资查询模块 select_money,用来展示工资数额
4、定义一个start.py ,启动文件展示最终存款金额
'''
import money
import select_money
import send_money

if __name__ == '__main__':
    before_salary = money.saved_money
    print(f'原有存款为:{before_salary}')
    add_money = 1000
    print(f'本月工资为:{add_money}')
    now_salary = select_money.select_money(
        send_money.send_money(now_money=1000))
    print(f'现有存款为:{now_salary}')
示例#3
0
from have_money import saved_money
from send_money import send_money
from select_money import select_money

print(saved_money)
saved_money = send_money(saved_money)
select_money(saved_money)

print(saved_money)
示例#4
0
# -*- coding=utf-8 -*-
# author:lg62850
import money
import send_money
import select_money

if __name__=='__main__':
    send_money.send_money(2000)
    print(select_money.select_money())
示例#5
0
import select_money
import send_money

if __name__ == '__main__':
    # salary = 2000
    # send_money(salary)
    # select_money(salary)
    # select_money.select_money()
    # print(select_money.select_money())
    # send_money(1000)
    # send_money.send_money(select_money.select_money(2000))

    for i in range(10):
        print("")
        print(f"第{i+1}次工资发送情况")
        send_money.send_money(select_money.select_money(2000))
示例#6
0
from send_money import send_money
from select_money import select_money

if __name__ == '__main__':
    print('原有存款:', select_money())
    send_money(1000)
    print('发工资后存款:', select_money())