会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
12兵哥哥
博客园
首页
新随笔
联系
订阅
管理
上一页
1
2
3
4
2016年9月16日
python 字符串操作
摘要: str1 = " nice to \t \n meet you \t \n " str2 = "9999 nice to \t 9 \n meet you \t \n 99999999" str3 = "nice to meet you" 增 (1)将全部由字符组成的列表合拼成一个字符串 list1
阅读全文
posted @ 2016-09-16 16:18 12兵哥哥
阅读(244)
评论(0)
推荐(0)
2016年8月31日
python 列表常用操作
摘要: 例子: list1 = [1, 2, 3, 4, 5, 6, [6, 7, 8,9], 'hi', 'hello', 6] list2 = [7, 8, 1, 2] list3 = ['good', 'well', 'apple', 'bye'] 增 (1)在列表最后增加一个元素:“end” lis
阅读全文
posted @ 2016-08-31 23:30 12兵哥哥
阅读(189)
评论(0)
推荐(0)
2016年7月9日
python2 到 python3 转换工具 2to3
摘要: windows系统下的使用方法: (1)将python安装包下的Tools/Scripts下面的2to3.py拷贝到需要转换文件目录中。 (2)dos切换到需要转换的文件目录下,运行命令2to3.py test.py 可打印test.py,在python2与python3的差异。 (3)dos切换到
阅读全文
posted @ 2016-07-09 18:56 12兵哥哥
阅读(12252)
评论(0)
推荐(0)
2016年7月3日
python day1 常用模块
摘要: 键盘输入: python2.7 raw_input() python3 input() 键盘输入默认为字符串,可通过例如 int(input())方式,实现类型转换。 ‘密文’输入: 仅python的命令模式可用 import getpass password = getpass.getpass("
阅读全文
posted @ 2016-07-03 21:40 12兵哥哥
阅读(167)
评论(0)
推荐(0)
上一页
1
2
3
4
公告