创建一个变量amount接收用户输入的净利润金额,并输入。【运行效果】请输入本年净利润金额:6677本年净利润为:6677元
运行效果如下:
amount = input("请输入选择本年净利润金额:") print('本年净利润为:%s元' % amount)