代码在鹦鹉上运行良好,但在ubuntu上显示错误。
def count_down(count):
count_min = math.floor(count/60)
count_sec = count%60
if count_min<10:
count_min=f"0{count_min}"
if count_sec<10 :
count_sec=f"0{count_sec}"显示的错误是
count_min=f"0{count_min}"
^
SyntaxError: invalid syntax发布于 2022-05-15 04:52:07
当我在vs代码中运行该文件时,问题得到了解决。
count_min=f"0{count_min}"
^
SyntaxError: invalid syntax我尝试了python3 main.py并显示了这个错误
from tkinter import messageboxModuleNotFoundError:没有名为tkinter的模块
所以我做了sudo apt-get install python3-tk
我的应用程序运行良好
https://stackoverflow.com/questions/72245438
复制相似问题