当我运行程序进行FCFS调度时,它指出了在线上的错误
bt.append(int(input(f"Enter burst time for process: {i} ->")))
语法错误
#python code to implement FCFS CPU Scheduling
n = int(input("Enter number of processes:"))
bt = [] # Burst Time
wt = [0,0,0,0,0,0,0,0,0] # Waiting Time
tat = [0,0,0,0,0,0,0,0,0,0] # Turn around time
#Take input
for i in range (0,n):
bt.append(int(input(f"Enter burst time for process: {i} ->")))
#Waitng time
for i in range(1,n):
wt[i] = 0
for j in range (0,i):
wt[i] += bt[i]
# Turn around time
for i in range(0,n):
tat[i] = wt[i] + bt[i]
print()
print("\t Process \t\t Burst Time \t\t Waitng Time \t\t Turn around time")
for i in range(0,n):
print(f"\t P[{i}] \t\t {bt[i]} \t\t {tat[i]} ")
答案 0 :(得分:0)
您需要使用format方法:
@component('mail::message')
Hello,
You have received a new request regarding your project.
@component('mail::button', ['url' => env('APP_URL'). '/#/project-requests/' . $projectClientId ])
See request
@endcomponent
Best regards,<br>
The ... team
@endcomponent