Closed QiHangLuo closed 5 years ago
加1
一样的报错,又解决吗?
找出问题了,是config文件不对,最后几行不要注释,直接删掉就可以了
这是时间配置的有问题吗
Traceback (most recent call last):
File "run.py", line 1, in
这是时间配置的有问题吗 Traceback (most recent call last): File "run.py", line 1, in from GFWeather import gfweather File "/home/ray/app/EverydayWechat-master/GFWeather.py", line 29 init_msg = f"每天定时发送时间:{alarm_timed}\n" ^ SyntaxError: invalid syntax
你的这个问题,应该是 Python 版本的问题。这是 Python 3.6 之后 的语法 。
找出问题了,是config文件不对,最后几行不要注释,直接删掉就可以了
哇,感谢
不论是在cmd还是在pycharm中,运行之后都会报错,求助 Traceback (most recent call last): File "run.py", line 21, in
run()
File "run.py", line 9, in run
gfweather().run()
File "D:\git\git\repository\pythonHomework\EverydayWechat\GFWeather.py", line 18, in init
self.girlfriend_list, self.alarm_hour, self.alarm_minute, self.dictum_channel = self.get_init_data()
File "D:\git\git\repository\pythonHomework\EverydayWechat\GFWeather.py", line 37, in get_init_data
girlfriend.get('wechat_name').strip()
AttributeError: 'NoneType' object has no attribute 'get'