The National water quality Query API is based on the watershed query water quality, including monitoring site, ph, ph category , dissolved oxygen, dissolved oxygen quality category, ammonia nitrogen, ammonia nitrogen water quality category, Potassium permanganate index, potassium permanganate Index
Php-based water quality Query api call code example
Code description: php-based water quality Query api call code exampleAssociated Data: Water qualityInterface address: http://www.juhe.cn/docs/api/id/34
Water Quality Monitoring APICan be queried to the various areas of water flow, monitoring station water quality, such as a series of informationDetails: HTTP://WWW.HAOSERVICE.COM/DOCS/47Example: { error_code: 0, reason: Success , Result: { "name": "Hubei Yichang Nanjinguan ", "River": "Changjiang ", "section": "Three Gorges Reservoir export ", "ph"
Automated test = unittest and requests interface test cases, test express query api (2), unittestrequests
Generate a test report based on the original one:
First, generate a report file using unittest of HTMLTestRunner. py.
Then slightly modify the code:
Import requestsimpor
years1999 U.S. "Lunar explorer" NASA launched a "Lunar explorer" probe in 1998 to further search for evidence of the existence of water ice in the Antarctic region of the moon. Unfortunately, the "Lunar explorer" collision did not appear in the expected moisture cloud, the detection equipment has not detected any information about water.2006 Europe "Smart 1th" September 3, 2006, the European Space agency l
Previously useful in the project to Webapi external interface, found in the project has based on WEBAPI methods and comments automatically generated help documents, can also test Webapi method, the function is very powerful, now take out to share with you.First look at the generated WEBAPI document.1, the display is the first page of the build Help document, where values is controller,api The following list
When participating in a Web API project, it was found that the help page was particularly useful, and it was not only possible to automatically generate a helper document based on Webapi's methods and comments, but also to test the Webapi method on this page. I also intend to use this help page when creating a new project. In practice, discovering a new Web API p
TestProject
Requirement test: view the cup instruction manualInterface Test: view the appearance of the cupFunctionality: use water cups for water leakage.Safety: whether the cup contains viruses or bacteriaAvailability: The damage degree of the Cup falling from different heightsPortability: whether the cups can be us
(); 45 46//Injection implementation Iswaggerprovider Use the default settings of the. Addswaggergen (); Configureswaggergen (Options =>50 {the options. Singleapiversion (new Info52 {Version = "V1", * * * "Test ASP.N ET Core WebAPIGenerate document (document description) ", Description =" A Simple example ASP. NET Core Web API ", Termsofser vice = "None", the page contact = new Contact {Name = "Linyongjie",
set the time-out periodSer.baudrate = 9600 Set baud rateSer View the status of the current serial portSer.isopen () see if this serial port has been openedNote: do not name the new py file with serial, I am the name of the serial, causing the problem. Because there is an import serial in the code. Originally want to introduce people's official library, you name a serial, he cited the nearest you this document, definitely a problem.That's the mistake.Attributeerror:module ' Serial ' has no attri
1. Referencing the web API Test Client through NuGetReferences to play the DLL generate the following files:This is our help. Document interface2. In the project properties, make the following settings, tick the XML document file, and set the path3. Create xmldocument.xml under the App_Data folder of the project4. Open the \areas\helppage\app_start\helppageconfig.cs file and uncomment the following codeExce
Euler circuitTime limit:2000/1000 MS (java/others) Memory limit:32768/32768 K (java/others)Total submission (s): 10135 Accepted Submission (s): 3708Problem description is a loop that does not leave the pen on the paper, but only once per side of the picture, and can return to the starting point. Now given a diagram, ask if there is a Euler circuit?The input test inputs contain several test cases. The 1th
Nine Chapters count judges Net-original websitehttp://www.jiuzhang.com/problem/45/TopicsGiven a positive integer array (a0,a1.), representing n coordinates (0,A0), (1,A1), the N-points are drawn according to the n Dots, and the two endpoints of each segment are (I, AI) and (i, 0) respectively. Two line segments are found so that the container of the two segments and the x-axis has the largest capacity for storing water. such as [2,1,3], maximum, selec
subscript first move, and record the current temporary maximum value of the underlying (such as I first move, record I_max), when encountered a new maximum value of the time , not only to the I to the local variable zeroing, but also to compare the maximum value and J corresponding value of the size relationship, and then the smaller value corresponding to the subscript continues to move, until the two subscript meet, traversed the array so far.Program codeintVolume (int* Height,intN) {inti =0;
you win the 1th time after you take the stone the remaining two piles of stone x,y,xSample Input1 2 5 84 72 20 0Sample Output014 73 5010) 01 2AuthorzhouscReprint please declare blog original address: http://blog.csdn.net/lionel_dThe test data of this problem is extremely water, and the online part of the human code is fundamentally wrong. I refer to the code written by http://www.cnblogs.com/kuangbin/archi
Apizza (Http://apizza.cc?f=51cto) platform is divided into development mode and browse template, development mode only the user can open, browse mode is for other people to view, test use. 650) this.width=650; "src=" Http://ocrlqrwod.bkt.clouddn.com/195239_mw7H_2405364.png "style=" width:800px;height : 400px; "alt=" 195239_mw7h_2405364.png "/>The Platform supports standard HTTP protocol requests, supports adding headers, supports standard Json,xml,htm
1. Ali's English name
Ali recently remembered an English name, so he looked up a lot of names on the Internet. He found that some names could be partly derived from two different names, such as John's prefix "John" and Robinson's suffix "Son", which was Johnson.Now he finds two favorite names (names can be treated as strings), with A and B, he wants to know a non-unprecedented prefix of a and a non-null suffix of B, and how many different strings can be formed by joining together.Input form
, representing ai, Bi , and Ci, respectively.The next P-line, describing the route information, contains three integers per line, representing ai, Bi , and Ci, respectively.The output format outputs T line, which represents the minimum cost from town s to each city, and if not, output no PATH. Sample Input 6 3 3 41 2 53 4 55 6 103 5-1004 6-1001 3-10 Example Output no PATHNO PATH50-95-100 data size and conventionsFor 20% of data,tFor 30% of data,rFor 100% of data, 1The first time to submit the ti
, not for it, is the map ' save money ', Amoy rivers and lakes every day a variety of activities to save money ', ' the ' banks ', ' follow the purchase '. Those days to see ' Follow the purchase ' on the ' Panda car ' group buy, the day 12 to rob, did not expect to rob. ”
Geely Test water SNS Marketing, why is Amoy rivers and lakes?
After more than a year of development, the current Amoy lake is to becom
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.