答案 0 :(得分:6)
这是您正在阅读的非常旧的手册,请查看此部分:https://docs.julialang.org/en/stable/manual/integers-and-floating-point-numbers/#Floating-Point-Numbers-1。
TL; DR就是 # Delete Ticket
@app.route('/delete_ticket/<string:id>', methods=['POST'])
@is_logged_in
def delete_ticket(id):
# Create cursor
cur = mysql.connection.cursor()
# Execute
cur.execute("DELETE FROM tickets WHERE id = %s", [id])
# Commit to DB
mysql.connection.commit()
# Close connection
cur.close()
flash('Ticket Deleted', 'success')
return redirect(url_for('dashboard'))
获得f
(单精度)和Float32
获得e
(双精度):
Float64