invoice_ex.py 文件源码

python
阅读 20 收藏 0 点赞 0 评论 0

项目:Automate-it 作者: PacktPublishing 项目源码 文件源码
def get_invoice(user_name, user_id, month):
  html = """
    <p>Anzee Corporation</p><br>
    <b><p>Account Name: """ + user_name + """</p>
    <p>Invoice for month of: """ + str(calendar.month_name[month]) + """</p></b>
    <br><br>    
    <p><b>Payments and Usage:</b></p>   
    <table align="center" width="50%">
        <thead>
            <tr>
                <th align="left" width="50%">Charge Type</th>
                <th align="right" width="50%">Amount</th>
            </tr>
        </thead>
        <tbody>
            <tr>
                <td>Payments Done</td>
                <td align="right">$""" + str(get_payments(user_id, month)) + """</td>
            </tr>
            <tr>
                <td>Total Usage</td>
                <td align="right">$""" + str(get_usage(user_id, month)) + """</td>
            </tr>
        </tbody>
    </table>
    <br><br>
  """
  return html
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号