# 计算你的年龄
这个脚本以三种不同的方式输出您的年龄:
1.年份
2.月份
3.天数
## 先决条件
你只需要Python即可运行此脚本。你可以访问[这里](https://www.python.org/downloads/)下载Python。
## How to run the script
<!--Remove the below lines and add yours -->
Running the script is really simple! Just open a terminal in the folder where your script is located and run the following command :
`python calculate.py`
## Sample use of the script
<!--Remove the below lines and add yours -->
```
$ python calculate.py
input your name: XYZ
input your age: 33
XYZ's age is 33 years or 406 months or 12328 days
```
## *Author Name*
<!--Remove the below lines and add yours -->
[Gaodong](https://github.com/xlgd)
没有合适的资源?快使用搜索试试~ 我知道了~
这个脚本以三种不同的方式输出您的年龄: 1.年份 2.月份 3.天数 ## 先决条件 你只需要Python即可运行此脚本。你可以访问[这里](https://www.python.org/downloads/)下载Python。 ## 如何运行脚本 运行脚本真的很简单!只需在脚本所在的文件夹中打开一个终端,然后运行以下命令: `python calculate.py` ## 脚本的示例使用 ``` $ python calculate.py input your name: XYZ input your age: 33 XYZ's age is 33 years or 406 months or 12328 days ```
资源推荐
资源详情
资源评论
收起资源包目录
Calculate_age.zip (2个子文件)
Calculate_age
calculate.py 1KB
README.md 780B
共 2 条
- 1
资源评论
海拥✘
- 粉丝: 19w+
- 资源: 189
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功