![](https://img-blog.csdnimg.cn/20201014180756928.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
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 · 508 阅读 · 0 评论 -
python字符串
一、字符串的创建和赋值 创建一个字符串就像使用一个标量一样简单,当然你也可以把str()作为工厂方法来创建一个字符串并把它赋值给一个变量: >>> aString = 'Hello World!' # 使用单引号 >>> anotherString = "Python is cool!" # 使用双引号 >>> print aString # print 不带引号的 Hello World原创 2015-03-11 08:53:49 · 406 阅读 · 0 评论