Python初学
ouyangzp
这个作者很懒,什么都没留下…
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
Python简单错误
1、 AttributeError: 'module' object has no attribute 'randint' You have anther file named "random.py" on the Python path that is read before the random module is reached.原创 2015-03-09 12:43:48 · 574 阅读 · 0 评论 -
python字符串
一、字符串的创建和赋值 创建一个字符串就像使用一个标量一样简单,当然你也可以把str()作为工厂方法来创建一个字符串并把它赋值给一个变量: >>> aString = 'Hello World!' # 使用单引号 >>> anotherString = "Python is cool!" # 使用双引号 >>> print aString # print 不带引号的 Hello World原创 2015-03-11 08:53:49 · 449 阅读 · 0 评论
分享