
python
python
^果然好^
这个作者很懒,什么都没留下…
展开
-
(3)python编码-2
函数调用 要调用一个函数,需要知道函数的名称和参数,比如求绝对值的函数abs >>> abs(-10) 10 数据类型转换 >>> int('123') 123 >>> int(12.34) 12 >>> float('12.34') 12.34 >>> str(1.23) '1.23' >...原创 2020-04-29 16:45:25 · 117 阅读 · 0 评论 -
(2)python编码-1
目录 简单案例 输入输出 输出 输入 字符编码 格式化 list和tuple 条件判断 循环 dict set 简单案例 py文件名只能是英文字母、数字和下划线的组合 Windows: 写test.py print('hello, world') PS D:\python-lessons> python .\test.py hello, world...原创 2020-04-29 15:55:36 · 296 阅读 · 0 评论 -
(1)python安装
1、Windows安装 官网下载:https://www.python.org 如果你不知道怎么修改环境变量,建议把Python安装程序重新运行一遍,务必记得勾上Add Python 3.7 to PATH 验证 2.linux安装 待续 ...原创 2020-04-29 11:07:46 · 231 阅读 · 0 评论