Miyu original, post Please note: Reprinted from __________ White House
Question address:
Http://acm.hdu.edu.cn/showproblem.php? PID = 1, 2714
Description:
ISBN Time Limit: 2000/1000 MS (Java/others) memory limit: 32768/32768 K (Java/Others)Total submission (s): 566 accepted submission (s): 172 Problem descriptionfarmer John's cows enjoy reading books, and FJ has discovered that his cows produce more milk when they read books of a somewhat intel
This article describes how to check whether a string is an ISBN in python, and describes how to operate a string in Python, for more information about how to check whether the string is ISBN, see the example in this article. Share it with you for your reference. The specific implementation method is as follows:
def isISBN(isbn): """Checks if the passed string
Problem DescriptionEach published book has an ISBN number corresponding to it, the ISBN code includes 9-digit, 1-bit identification number and 3-bit delimiter, the specified format such as "X-xxx-xxxxx-x", where the symbol "-" is a separator (the keyboard minus), the last one is the identification code, For example, 0-670-82162-4 is a standard ISBN code. The firs
Python checks whether the string is the correct ISBN method, pythonisbn
This example describes how to check whether the string is ISBN correctly in python. Share it with you for your reference. The specific implementation method is as follows:
def isISBN(isbn): """Checks if the passed string is a valid ISBN number.""
This example describes how Python checks if a string is the correct ISBN. Share to everyone for your reference. The implementation method is as follows:
Def ISISBN (ISBN): "" " Checks if the passed string is a valid ISBN number. " " If Len (ISBN)! = ten or Not Isbn[:9].
An example of recognizing the ISBN number of a book and outputting the query results
I wrote a technical prototype, used a mobile phone to identify the ISBN barcode of a book, and then output the information of the book corresponding to the ISBN through the API of douban.com.
The example is simple. Click a button to enter the zxing activity, which is used to sca
When we get the barcode of the book, we can use WebResponse and HttpWebRequest to get the information of the book from Douban. Get the address of the book information:
"Http://api.douban.com/book/subject/isbn/plus the book's barcode, can be only numbers, can also be added in the middle"-"(not including quotes) such as: 978-7-115-18103-9.
Note that the returned data needs to be encoded using UTF-8, and if GB2312 is used, it will be garbled.
Add the fol
The following sample code applies to the API under the Www.apishop.net Web site, and you need to request the appropriate API service before invoking the code sample using the interface mentioned in this article.
Driving Test Questions Library: Get driving questions and answers
ISBN ISBN query: through 10-bit or 13-bit ISBN query
A class that converts a book bar code to an ISBN number
Last night, get the barcode picture drawn and saved, two effects today:
Look at the runtime:
Save Results:
It is not clear that the "-" rule is converted to ISBN ISBN.Which heroes know, hope to inform. Thank you.
In addition, this barcode conversion is also useful in addition to the book bar code of any other goods bar code, the difference is th
Reprint, Source: http://blog.csdn.net/berryreload/article/details/9126645Copyright NOTICE: This article for Bo Master original article, without Bo Master permission not reproduced.Find a half-day, or the Watercress API easy to use ~ ~ ~Example:https://api.douban.com/v2/book/isbn/:9787111128069Results:{"rating": {"Max": Ten, "Numraters": 2576, "average": "9.3", "Min": 0}, "subtitle": "", "Author": ["(US) Brian W Kernighan", " (US) Dennis M. Ritchie "],
[Programming language] PHP [source code source] http://px.sklar.com [function description] checks whether the ISBN number entered by the user (either with or without a hyphen) is legal. The source code is as follows: [Programming language] PHP [source code source] http://px.sklar.com [function description] checks whether the ISBN number entered by the user (either with or without a hyphen) is legal. The sou
[Program Language] PHP [Source] http://px.sklar.com [function description] Check whether the user entered the ISBN number (can be or without a hyphen symbol) is legal. The source code is as follows:
http://www.bkjia.com/PHPjc/532111.html www.bkjia.com true http://www.bkjia.com/PHPjc/532111.html techarticle [Program Language] PHP [source] http://px.sklar.com [function description] Check whether the user entered the
The desired effect is this,
When the number of digits entered by the user is 13 bits, it is judged that 1 to 4 bits are 9787, the latter 8 bits contain non-digits, and the last one can be either a number or a letter.
That is, when the user enters the ISBN number that matches the rule I want, the match result is 0, and it doesn't match the rule I want. 1
I've written it a few times, I can't write it.
$str = "9777123456789";
$pattern _url = "/\b^ (!)
ISBN number (Java) CCF simulated questionsImport java. util. collections;Public class Main {Public static void main (String [] args ){Using ss = new using (System. in );String str = ss. nextLine ();Char str1 [] = str. toCharArray ();Int [] str2 = new int [13];Int I = 0, j = 0, sum = 0, k = 0;For (I = 0; I {If (I! = 1 I! = 5 I! = 11){Str2 [j] = (int) str1 [I]-48;J ++;}Else{Continue;}}For (I = 0; I
Sum + = str2 [I] * (I + 1 );
}
Sum = sum
This example describes a JavaScript implementation that converts UPC to ISBN. Share to everyone for your reference. The implementation methods are as follows:
?
1 2 3 4, 5 6 7 8 9 10 11 12 13 14 15
if (Indexisbn.indexof ("978") = = 0) {ISBN = isbn.substr (3,9); var xsum = 0; var add = 0; var i = 0; for (i = 0; i
I hope this article will help you with your JavaScript programming.
This example describes a JavaScript implementation that converts UPC to ISBN. Share to everyone for your reference. The implementation methods are as follows:
if (Indexisbn.indexof ("978") = = 0) {
ISBN = isbn.substr (3,9);
var xsum = 0;
var add = 0;
var i = 0;
for (i = 0; i
I hope this article will help you with your JavaScript programming.
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.