摘要:
Python——字符串(python programming) python——字符串①加法 连接两个字符串②乘法 复制字符串python——转义字符\n 换行\' 单引号\'' 双引号\\ 反斜杠raw字符... 阅读全文
posted @ 2019-03-25 15:55
蔡军帅
阅读(121)
评论(0)
推荐(0)
摘要:
p ython——字符串 ①加法 连接两个字符串 ②乘法 复制字符串 python——转义字符 \n 换行 \' 单引号 \'' 双引号 \\ 反斜杠 raw字符串:无视转义字符 转义: 字符串和数字相互转化 函数str(), int(), float() 字符串方法:查找 字符串的方法函数s1.f 阅读全文
posted @ 2019-03-25 15:55
蔡军帅
阅读(404)
评论(0)
推荐(0)
摘要:
直接打s,是程序员看到的;打print(),是用户看到的 列表 ] #列表索引,与数组唯一不同:等号左端可修改 转载自:https://www.cnblogs.com/wwwwwei/p/10481653.html 阅读全文
posted @ 2019-03-25 15:53
蔡军帅
阅读(282)
评论(0)
推荐(0)
摘要:
Python——字符串2.0(实验)(python programming) 直接打s,是程序员看到的;打print(),是用户看到的 列表] #列表索引,与数组唯一不同:等号左端可修改 转载自:http... 阅读全文
posted @ 2019-03-25 15:53
蔡军帅
阅读(128)
评论(0)
推荐(0)
摘要:
Python——函数,模块,简单文件读写(python programming) 函数(function)定义原则:最大化代码重用,最小化代码冗余,流程符合思维逻辑,少用递归;函数的定义方法:def funct... 阅读全文
posted @ 2019-03-25 15:52
蔡军帅
阅读(179)
评论(0)
推荐(0)
摘要:
函数(function)定义原则: 最大化代码重用,最小化代码冗余,流程符合思维逻辑,少用递归; 函数的定义方法: def function_name(param_1, param_2): ..... return output #输出,结束函数 注意: 函数要在使用之前定义函数的使用方法以prin 阅读全文
posted @ 2019-03-25 15:52
蔡军帅
阅读(874)
评论(0)
推荐(0)
浙公网安备 33010602011771号