在服务器上运行python脚本

时间:2019-12-26 10:39:10

标签: python server

我有一个用python构建的程序,我想知道在服务器上运行该程序的最佳选择。 我想要一些建议。有人可以帮我吗?

1 个答案:

答案 0 :(得分:0)

什么类型的服务器? 有很多服务器,套接字服务器,TCP服务器,UDP服务器。 我假设使用网络服务器, 这是我创建的一个简单脚本,无论您执行什么程序,都可以根据自己的意愿在网络上打印它。

<form [formGroup]="signupForm" class="example-form" (ngSubmit)="onFormSubmit(signupForm)"   novalidate>
  <mat-form-field class="example-full-width">
    <input type="text" ngModel id='email' name='email' matInput placeholder="Enter your email"/>
  </mat-form-field>

  <mat-form-field class="example-full-width">
          <input type="text" ngModel id='name' name='name' matInput placeholder="Nom">
  </mat-form-field>



  <mat-form-field class="example-full-width">
           <input  type="text" ngModel id='lastname' name='lastname' matInput placeholder="Prenom" >
  </mat-form-field>


  <mat-form-field class="example-full-width">
          <input type="text" ngModel id='password' name='password' type="password" matInput placeholder="Enter your password" [type]="hide ? 'password' : 'text'">
          <button mat-icon-button matSuffix (click)="hide = !hide" [attr.aria-label]="'Hide password'" [attr.aria-pressed]="hide">

          </button>
  </mat-form-field>


  <div class="example-button-row">
    <button type="submit" mat-raised-button>Inscription</button>
  </div>
</form>

有关更多信息,请参考python文档

请注意,每个python版本的类和方法都不同。 因此,建议您使用的是哪个python版本。

相关问题