Day: January 14, 2019

python:字符串string 开头r,b,u,f 含义, str bytes 转换 format, 字节转字符串

  字符串开头r b u f各含义:   1、字符串前加 b 作用: python3.x里默认的str是(py2.x里的)unicode, bytes是(py2.x)的str, b”“前缀代表的就是bytes python2.x里, b前缀没什么具体意义, 只是为了兼容python3.x的这种写法 b'input\n' # bytes字节符,打印以b开头。 # 输出: # b'input\n'   2、字符串前加 r 例:r”\n\n\n\n\n\n” 作用:声明后面的字符串是普通字符串,相对的,特殊字符串中含有:转义字符 \n \t 什么什么的。 测试效果: 用途:一般用在 正则表达式、文件绝对地址、等等中。。。… Read More

Paypal: 如何获取API signature, How do I request API Signature or Certificate credentials?, NVP/SOAP API integration

    获取 Sandbox 的 API 信息 首先要有一个 developer 账户: https://developer.paypal.com/ 然后到 DASHBOARD 页面:https://developer.paypal.com/developer/applications/ 然后到 SANDBOAX DASHBOARD 页面: https://developer.paypal.com/developer/accounts/   点击 facilitator 的 profile,就可以得到:   其他的 API 信息,可以到 https://developer.paypal.com/d… Read More