摘要: [WHY]记性差,做个记录. 所以顺序很随意,建议 ctrl+f 查找你要的内容即可 a.字符串 b.整数 %d c.浮点数%f d.占位符 d.1 默认对齐(右对齐) PI=3.1415926 print("PI=%.*f"%(3,PI)) #用*从后面的元组中读取字段宽度或精度,可以读取出来精度 阅读全文
posted @ 2019-01-29 16:21 舒汐桐 阅读(1420) 评论(0) 推荐(0) 编辑
摘要: 1.vscode语言环境改为中文 [WHY]才发现我的环境一直都是英文,来改一下吧... a.按下快捷键: Windows、Linux 快捷键是:ctrl+shift+p macOS快捷键是:command + shift + p b. c.如果原来是"en"的,改成如图. (注: 一直删到冒号那里 阅读全文
posted @ 2019-01-29 14:07 舒汐桐 阅读(4965) 评论(0) 推荐(0) 编辑
摘要: [WHY]为什么写这篇文章 我在安装openpyxl模块时遇到了以下问题: 1.Consider using the `--user` option or check the permissions 对应措施:pip install --user xxxname 2.No module named 阅读全文
posted @ 2019-01-29 11:06 舒汐桐 阅读(4864) 评论(0) 推荐(0) 编辑