Code Monkey home page Code Monkey logo

auto_sign-python3's People

Contributors

friday21 avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar

auto_sign-python3's Issues

程式碼在crontab上執行,有編碼的問題

我的系統是OS X ,當我執行crontab時,log顯示以下的錯誤,看起來像是編碼錯誤的樣子?
看起來像是print不出中文字的樣子
真不好意思,又麻煩你了

`From [email protected] Thu May 19 04:03:01 2016
Return-Path: [email protected]
X-Original-To: ANDY_MBP
Delivered-To: [email protected]
Received: by ANDYdeMacBook-Pro.local (Postfix, from userid 501)
id AB4BD1011734; Thu, 19 May 2016 04:03:01 +0800 (CST)
From: [email protected] (Cron Daemon)
To: [email protected]
Subject: Cron ANDY_MBP@ANDYdeMacBook-Pro python3 /Users/ANDY_MBP/Documents/crontab/zimuzu.py
X-Cron-Env: <PATH=/Library/Frameworks/Python.framework/Versions/3.5/bin/python3:/Library/Frameworks/Python.framework/Versions/3.5/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin>
X-Cron-Env: <SHELL=/bin/sh>
X-Cron-Env: <LOGNAME=ANDY_MBP>
X-Cron-Env: <USER=ANDY_MBP>
X-Cron-Env: <HOME=/Users/ANDY_MBP>
Message-Id: [email protected]
Date: Thu, 19 May 2016 04:03:01 +0800 (CST)

Traceback (most recent call last):
File "/Users/ANDY_MBP/Documents/crontab/zimuzu.py", line 83, in
if sign('[email protected]', '123456'):
File "/Users/ANDY_MBP/Documents/crontab/zimuzu.py", line 66, in sign
print(data['info'])
UnicodeEncodeError: 'ascii' codec can't encode characters in position 0-4: ordinal not in range(128)
`

人人簽到又無法使用了

現在執行會跑出這個訊息,是我設定問題還是什麼問題呢?
Traceback (most recent call last): File "/Users/NeiL_MBP/Documents/crontab/zimuzu.py", line 83, in <module> if sign('[email protected]', 'XXX'): File "/Users/NeiL_MBP/Documents/crontab/zimuzu.py", line 61, in sign data = json.loads(data.decode('utf-8')) File "/Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/json/__init__.py", line 319, in loads return _default_decoder.decode(s) File "/Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/json/decoder.py", line 339, in decode obj, end = self.raw_decode(s, idx=_w(s, 0).end()) File "/Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/json/decoder.py", line 357, in raw_decode raise JSONDecodeError("Expecting value", s, err.value) from None json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0)

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.