Python post submission

Source: Internet
Author: User

1 #Coding:utf82 ImportRequests3 deflogin ():4URL ='Http://back.xiyilang.cc/staff/login.json'5headers={'x-forwarded-for':'127.0.0.1'}#IP Conversion6Data={7         'Staffcode':'00025',#User8         'Password':'123456',#Password9     }Tenx = Requests.post (url,data,headers=headers)#Login account Password OneCookie = x.cookies#cookie=cookies Get cookie wait for next call A     returnCookies -Cookie =Login () - defLvaue (ID): theURL ='Http://back.xiyilang.cc/admin/staff-admin!search.json' -headers = {'x-forwarded-for':'127.0.0.1'} -data = { -         'StaffID': ID, +     } -x = Requests.post (url,data,headers=headers,cookies=cookie). Text#make a call to the cookie again +     Printx AY=raw_input ('ID:') atLvaue (y)

*

Input () #危险 __import__ (' OS '). System (' dir ') executable

Raw_imput ()

Input () is actually implemented using Raw_input (), just after calling Raw_input () and then invoking the Eval () function, so you can even use the expression as an argument to input (), and it evaluates the expression and returns it.

In built-in Functions, however, there is a sentence that reads: Consider using the Raw_input () function for general input from users.

Unless there is a special need for input (), it is generally recommended to use raw_input () to interact with the user

Python post submission

Related Article

Contact Us

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.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.