Giter VIP home page Giter VIP logo

alipayf2f's People

Contributors

pengfei00 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

alipayf2f's Issues

TypeError: 'module' object is not callable

报错信息:

Traceback (most recent call last):
  File "E:/Python/f2f/main.py", line 9, in <module>
    alipay = alipay(APPID,private_key,public_key,notify_url)
TypeError: 'module' object is not callable

代码内容:

# -*- coding: UTF-8 -*-
import os
os.chdir(r"E:\Python\f2f")
import alipay
APPID = 2017051207221985
private_key = 'MIIEogIBAAKCA='
public_key = 'MIIBI'
notify_url = 'https://91vps.club/2017/05/26/freenom/'
alipay = alipay(APPID,private_key,public_key,notify_url)
alipay.trade_pre_create("10236547","10","肥羊滴滴滴",)

我查了一下,"TypeError: 'module' object is not callable"这个信息是说你试图把"alipay"这个模块作为一个函数来调用,但它却无法调用。

可是博主给出的demo是可以调用的,这是为什么呢?
以及博主使用的是RSA1还是RSA2呢?

ImportError: cannot import name request

Traceback (most recent call last):
File "\alipay.py", line 7, in
from urllib import request, parse
ImportError: cannot import name request

这个由解吗……然后作者能否提供下调用trade_pre_create的demo呀?这里失败了好多次无法启动模型

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.