Python 标准库参考指南 2.7.18 fillchar (default is a space). 在 2.4 版更改: Support for the fillchar argument. str.count(sub[, start[, end]]) 反回子字符串 sub 在 [start, end] 范围内非重叠出现的次数。可选参数 start 与 end 会被解读为切片表示 法。 str.decode([encoding[, errors]]) 012 0123 01234' str.find(sub[, start[, end]]) 返回子字符串 sub 在 s[start:end] 切片内被找到的最小索引。可选参数 start 与 end 会被解读为切片 表示法。如果 sub 未被找到则返回 -1。 注解: find() 方法应该只在你需要知道 sub 所在位置时使用。要检查 sub 是否为子字符串,请使用 in 操作符: >>> Operations in new code. 38 Chapter 5. 内置类型 The Python Library Reference, 发布 2.7.18 2.6 新版功能. str.index(sub[, start[, end]]) Like find(), but raise ValueError when the substring is not found. str.isalnum()0 码力 | 1552 页 | 7.42 MB | 10 月前3
Python 标准库参考指南 2.7.18 fillchar (default is a space). 在 2.4 版更改: Support for the fillchar argument. str.count(sub[, start[, end]]) 反回子字符串 sub 在 [start, end] 范围内非重叠出现的次数。可选参数 start 与 end 会被解读为切片表示 法。 str.decode([encoding[, errors]]) 012 0123 01234' str.find(sub[, start[, end]]) 返回子字符串 sub 在 s[start:end] 切片内被找到的最小索引。可选参数 start 与 end 会被解读为切片 表示法。如果 sub 未被找到则返回 -1。 注解: find() 方法应该只在你需要知道 sub 所在位置时使用。要检查 sub 是否为子字符串,请使用 in 操作符: >>> Operations in new code. 38 Chapter 5. 内置类型 The Python Library Reference, 发布 2.7.18 2.6 新版功能. str.index(sub[, start[, end]]) Like find(), but raise ValueError when the substring is not found. str.isalnum()0 码力 | 1552 页 | 7.42 MB | 10 月前3
Python 标准库参考指南 2.7.18 fillchar (default is a space). 在 2.4 版更改: Support for the fillchar argument. str.count(sub[, start[, end]]) 反回子字符串 sub 在 [start, end] 范围内非重叠出现的次数。可选参数 start 与 end 会被解读为切片表示 法。 str.decode([encoding[, errors]]) 012 0123 01234' str.find(sub[, start[, end]]) 返回子字符串 sub 在 s[start:end] 切片内被找到的最小索引。可选参数 start 与 end 会被解读为切片 表示法。如果 sub 未被找到则返回 -1。 注解: find() 方法应该只在你需要知道 sub 所在位置时使用。要检查 sub 是否为子字符串,请使用 in 操作符: >>> Operations in new code. 38 Chapter 5. 内置类型 The Python Library Reference, 发布 2.7.18 2.6 新版功能. str.index(sub[, start[, end]]) Like find(), but raise ValueError when the substring is not found. str.isalnum()0 码力 | 1552 页 | 7.42 MB | 10 月前3
peewee Documentation Release 3.0.0Message(BaseModel): user = ForeignKeyField(User, backref='messages') content = TextField() pub_date = DateTimeField() Note Note that we create a BaseModel class that simply defines what database following()) .order_by(Message.pub_date.desc())) This code corresponds to the following SQL query: SELECT t1."id", t1."user_id", t1."content", t1."pub_date" FROM "message" AS t1 WHERE t1."user_id" database = db class Blog(BaseModel): title = CharField() contents = TextField() pub_date = DateTimeField() Models and Fields Model classes, Field instances and model instances all map0 码力 | 319 页 | 361.50 KB | 1 年前3
peewee Documentation
Release 3.3.0messages class Message(BaseModel): user = ForeignKeyField(User, backref='messages') content = TextField() pub_date = DateTimeField() Note: Note that we create a BaseModel class that simply defines what database << user.following()) .order_by(Message.pub_date.desc())) This code corresponds to the following SQL query: SELECT t1."id", t1."user_id", t1."content", t1."pub_date" FROM "message" AS t1 WHERE t1."user_id" BaseModel(Model): class Meta: database = db class Blog(BaseModel): title = CharField() contents = TextField() pub_date = DateTimeField() 1.6. Database 61 peewee Documentation, Release 3.3.0 1.7 Models and Fields0 码力 | 280 页 | 1.02 MB | 1 年前3
peewee Documentation
Release 3.4.0messages class Message(BaseModel): user = ForeignKeyField(User, backref='messages') content = TextField() pub_date = DateTimeField() Note: Note that we create a BaseModel class that simply defines what database << user.following()) .order_by(Message.pub_date.desc())) This code corresponds to the following SQL query: SELECT t1."id", t1."user_id", t1."content", t1."pub_date" FROM "message" AS t1 WHERE t1."user_id" BaseModel(Model): class Meta: database = db class Blog(BaseModel): title = CharField() contents = TextField() pub_date = DateTimeField() 1.7 Models and Fields Model classes, Field instances and model instances all0 码力 | 284 页 | 1.03 MB | 1 年前3
peewee Documentation Release 3.4.0Message(BaseModel): user = ForeignKeyField(User, backref='messages') content = TextField() pub_date = DateTimeField() Note Note that we create a BaseModel class that simply defines what database following()) .order_by(Message.pub_date.desc())) This code corresponds to the following SQL query: SELECT t1."id", t1."user_id", t1."content", t1."pub_date" FROM "message" AS t1 WHERE t1."user_id" database = db class Blog(BaseModel): title = CharField() contents = TextField() pub_date = DateTimeField() Models and Fields Model classes, Field instances and model instances all map0 码力 | 349 页 | 382.34 KB | 1 年前3
peewee Documentation Release 3.1.0Message(BaseModel): user = ForeignKeyField(User, backref='messages') content = TextField() pub_date = DateTimeField() Note Note that we create a BaseModel class that simply defines what database following()) .order_by(Message.pub_date.desc())) This code corresponds to the following SQL query: SELECT t1."id", t1."user_id", t1."content", t1."pub_date" FROM "message" AS t1 WHERE t1."user_id" database = db class Blog(BaseModel): title = CharField() contents = TextField() pub_date = DateTimeField() Models and Fields Model classes, Field instances and model instances all map0 码力 | 332 页 | 370.77 KB | 1 年前3
peewee Documentation
Release 3.5.0messages class Message(BaseModel): user = ForeignKeyField(User, backref='messages') content = TextField() pub_date = DateTimeField() Note: Note that we create a BaseModel class that simply defines what database << user.following()) .order_by(Message.pub_date.desc())) This code corresponds to the following SQL query: SELECT t1."id", t1."user_id", t1."content", t1."pub_date" FROM "message" AS t1 WHERE t1."user_id" BaseModel(Model): class Meta: database = db class Blog(BaseModel): title = CharField() contents = TextField() pub_date = DateTimeField() 1.6 Models and Fields Model classes, Field instances and model instances all0 码力 | 282 页 | 1.02 MB | 1 年前3
peewee Documentation
Release 3.5.0Message(BaseModel): user = ForeignKeyField(User, backref='messages') content = TextField() pub_date = DateTimeField() Note Note that we create a BaseModel class that simply defines what database following()) .order_by(Message.pub_date.desc())) This code corresponds to the following SQL query: SELECT t1."id", t1."user_id", t1."content", t1."pub_date" FROM "message" AS t1 WHERE t1."user_id" database = db class Blog(BaseModel): title = CharField() contents = TextField() pub_date = DateTimeField() Models and Fields Model classes, Field instances and model instances all map0 码力 | 347 页 | 380.80 KB | 1 年前3
共 461 条
- 1
- 2
- 3
- 4
- 5
- 6
- 47













