Tornado 6.1 Documentation
await q.join(timeout=timedelta(seconds=300)) assert fetching == (fetched | dead) print("Done in %d seconds, fetched %s URLs." % (time.time() - start, len(fetched))) print("Unable to fetch %s URLS which translates the string directly based on the current locale, and: _("A person liked this", "%(num)d people liked this", len(people)) % {"num": len(people)} which translates a string that can be singular The most common pattern for translations is to use Python named placeholders for variables (the %(num)d in the example above) since placeholders can move around on translation. Here is a properly internationalized0 码力 | 931 页 | 708.03 KB | 1 年前3Tornado 6.0 Documentation
range(concurrency)]) await q.join(timeout=timedelta(seconds=300)) assert fetching == fetched print("Done in %d seconds, fetched %s URLs." % (time.time() - start, len(fetched))) # Signal all the workers to which translates the string directly based on the current locale, and: _("A person liked this", "%(num)d people liked this", len(people)) % {"num": len(people)} which translates a string that can be singular The most common pattern for translations is to use Python named placeholders for variables (the %(num)d in the example above) since placeholders can move around on translation. Here is a properly internationalized0 码力 | 869 页 | 692.83 KB | 1 年前3Tornado 4.5 Documentation
worker() yield q.join(timeout=timedelta(seconds=300)) assert fetching == fetched print('Done in %d seconds, fetched %s URLs.' % ( time.time() - start, len(fetched))) if __name__ == '__main__': which translates the string directly based on the current locale, and: _("A person liked this", "%(num)d people liked this", len(people)) % {"num": len(people)} which translates a string that can be singular The most common pattern for translations is to use Python named placeholders for variables (the %(num)d in the example above) since placeholders can move around on translation. Here is a properly internationalized0 码力 | 333 页 | 322.34 KB | 1 年前3Tornado 6.1 Documentation
range(concurrency)]) await q.join(timeout=timedelta(seconds=300)) assert fetching == (fetched | dead) print("Done in %d seconds, fetched %s URLs." % (time.time() - start, ˓→len(fetched))) print("Unable to fetch %s URLS which translates the string directly based on the current locale, and: _("A person liked this", "%(num)d people liked this", len(people)) % {"num": len(people)} which translates a string that can be singular The most common pattern for translations is to use Python named placeholders for variables (the %(num)d in the example above) since placeholders can move around on translation. Here is a properly internationalized0 码力 | 245 页 | 904.24 KB | 1 年前3Tornado 6.0 Documentation
range(concurrency)]) await q.join(timeout=timedelta(seconds=300)) assert fetching == fetched print("Done in %d seconds, fetched %s URLs." % (time.time() - start, ˓→len(fetched))) # Signal all the workers to exit which translates the string directly based on the current locale, and: _("A person liked this", "%(num)d people liked this", len(people)) % {"num": len(people)} 28 Chapter 6. Documentation Tornado Documentation The most common pattern for translations is to use Python named placeholders for variables (the %(num)d in the example above) since placeholders can move around on translation. Here is a properly internationalized0 码力 | 245 页 | 885.76 KB | 1 年前3Tornado 5.1 Documentation
range(concurrency)]) await q.join(timeout=timedelta(seconds=300)) assert fetching == fetched print('Done in %d seconds, fetched %s URLs.' % ( time.time() - start, len(fetched))) # Signal all the workers to exit which translates the string directly based on the current locale, and: _("A person liked this", "%(num)d people liked this", len(people)) % {"num": len(people)} which translates a string that can be singular The most common pattern for translations is to use Python named placeholders for variables (the %(num)d in the example above) since placeholders can move around on translation. Here is a properly internationalized0 码力 | 243 页 | 895.80 KB | 1 年前3Tornado 4.5 Documentation
range(concurrency): worker() yield q.join(timeout=timedelta(seconds=300)) assert fetching == fetched print('Done in %d seconds, fetched %s URLs.' % ( time.time() - start, len(fetched))) if __name__ == '__main__': 4.1 which translates the string directly based on the current locale, and: _("A person liked this", "%(num)d people liked this", len(people)) % {"num": len(people)} which translates a string that can be singular The most common pattern for translations is to use Python named placeholders for variables (the %(num)d in the example above) since placeholders can move around on translation. Here is a properly internationalized0 码力 | 222 页 | 833.04 KB | 1 年前3Tornado 6.4 Documentation
range(concurrency)]) await q.join(timeout=timedelta(seconds=300)) assert fetching == (fetched | dead) print("Done in %d seconds, fetched %s URLs." % (time.time() - start, len(fetched))) print("Unable to fetch %s URLs." % which translates the string directly based on the current locale, and: _("A person liked this", "%(num)d people liked this", len(people)) % {"num": len(people)} which translates a string that can be singular The most common pattern for translations is to use Python named placeholders for variables (the %(num)d in the example above) since placeholders can move around on translation. Here is a properly internationalized0 码力 | 268 页 | 1.09 MB | 1 年前3Tornado 6.2 Documentation
range(concurrency)]) await q.join(timeout=timedelta(seconds=300)) assert fetching == (fetched | dead) print("Done in %d seconds, fetched %s URLs." % (time.time() - start, len(fetched))) print("Unable to fetch %s URLS." % which translates the string directly based on the current locale, and: _("A person liked this", "%(num)d people liked this", len(people)) % {"num": len(people)} which translates a string that can be singular The most common pattern for translations is to use Python named placeholders for variables (the %(num)d in the example above) since placeholders can move around on translation. Here is a properly internationalized0 码力 | 260 页 | 1.06 MB | 1 年前3Tornado 6.4 Documentation
range(concurrency)]) await q.join(timeout=timedelta(seconds=300)) assert fetching == (fetched | dead) print("Done in %d seconds, fetched %s URLs." % (time.time() - start, len(fetched))) print("Unable to fetch %s URLs." % which translates the string directly based on the current locale, and: _("A person liked this", "%(num)d people liked this", len(people)) % {"num": len(people)} which translates a string that can be singular The most common pattern for translations is to use Python named placeholders for variables (the %(num)d in the example above) since placeholders can move around on translation. Here is a properly internationalized0 码力 | 268 页 | 1.09 MB | 1 年前3
共 20 条
- 1
- 2