摘要: 1. 获得输入内容 input 2. print方法的使用,增加间隔,使用sep,换行方式为end 3. 对结果求值 eval 4. break 和 countinue的使用 break: 结束循环 continue:跳过当前循环进入下一次迭代 如果是嵌套循环,则break和continue分别只针 阅读全文
posted @ 2017-09-11 18:12 燃灯胡同 阅读(187) 评论(0) 推荐(0) 编辑
摘要: 1. math相关函数 x的余弦 2. 字符串拼接相关方法 + * 3. 列出模块中的函数 dir(module) 4. 查看函数的帮助字符串 help(func) 5. 查看文档字符串 func.__doc__ 6. 将整数和字符串转换为浮点数 float(x), x 为str 或 int类型 7 阅读全文
posted @ 2017-09-11 17:36 燃灯胡同 阅读(179) 评论(0) 推荐(0) 编辑
摘要: Explanation for issues of type "MissingTranslation": Explanation for issues of type "MissingTranslation": If an application has more than one locale, 阅读全文
posted @ 2017-09-11 17:05 燃灯胡同 阅读(989) 评论(0) 推荐(0) 编辑