鱼C论坛

 找回密码
 立即注册
分享 12.25 python基础 12~20
2017-12-25 22:28
元组: 元组是傲娇的列表(不能增删改) 元组只能使用count()和index()两个BIF 字符串: 0. 字符串的方法及注释 http://bbs.fishc.com/thread-38992-1-1.html (出处: 鱼C论坛) 1.字符串的格式化 '%c' % a a=97 或者 '{a} love {b}.{c}'.format(a='I',b='fishc',c='com') ...
个人分类: python基础|143 次阅读|0 个评论
分享 17.12.21 python基础
2017-12-22 15:58
17.12.21  python基础
最重要的BIF 0. print('') #说一下里面用+和,的区别 #print('hello'+name) 输出的是 helloiulus ,中间没有空格。 这个+相当于是两个字符串的拼接。(+两边必须是相同的数据类型) #print('hello', name)输出的是 hello iulus ,中间是有一个空格的。 #end='__' 的方法是在输出的字符串 ...
个人分类: python基础|85 次阅读|0 个评论

小黑屋|手机版|Archiver|鱼C工作室 ( 粤ICP备18085999号-1 | 粤公网安备 44051102000585号)

GMT+8, 2024-5-4 21:47

Powered by Discuz! X3.4

© 2001-2023 Discuz! Team.

返回顶部