PyWebIO v1.7.1 Documentation
in top_status: if BMI <= top: put_text('Your BMI: %.1f. Category: %s' % (BMI, status)) break if __name__ == '__main__': bmi() This is just a very simple script if you ignore PyWebIO, but after using the dictionary with the name of the single input as its key and the input data as its value: data = input_group("Basic info",[ input('Input your name', name='name'), input('Input your age', name='age', type=NUMBER type=NUMBER, validate=check_age) ]) put_text(data['name'], data['age']) The input group also supports using validate parameter to set the validation function, which accepts the entire form data as parameter:0 码力 | 112 页 | 1.38 MB | 1 年前3PyWebIO v1.8.0 Documentation
in top_status: if BMI <= top: put_text('Your BMI: %.1f. Category: %s' % (BMI, status)) break if __name__ == '__main__': bmi() This is just a very simple script if you ignore PyWebIO, but after using the dictionary with the name of the single input as its key and the input data as its value: data = input_group("Basic info",[ input('Input your name', name='name'), input('Input your age', name='age', type=NUMBER type=NUMBER, validate=check_age) ]) put_text(data['name'], data['age']) The input group also supports using validate parameter to set the validation function, which accepts the entire form data as parameter:0 码力 | 118 页 | 1.40 MB | 1 年前3PyWebIO v1.8.2 Documentation
in top_status: if BMI <= top: put_text('Your BMI: %.1f. Category: %s' % (BMI, status)) break if __name__ == '__main__': bmi() This is just a very simple script if you ignore PyWebIO, but after using the dictionary with the name of the single input as its key and the input data as its value: data = input_group("Basic info",[ input('Input your name', name='name'), input('Input your age', name='age', type=NUMBER type=NUMBER, validate=check_age) ]) put_text(data['name'], data['age']) The input group also supports using validate parameter to set the validation function, which accepts the entire form data as parameter:0 码力 | 118 页 | 1.40 MB | 1 年前3PyWebIO v1.8.1 Documentation
in top_status: if BMI <= top: put_text('Your BMI: %.1f. Category: %s' % (BMI, status)) break if __name__ == '__main__': bmi() This is just a very simple script if you ignore PyWebIO, but after using the dictionary with the name of the single input as its key and the input data as its value: data = input_group("Basic info",[ input('Input your name', name='name'), input('Input your age', name='age', type=NUMBER type=NUMBER, validate=check_age) ]) put_text(data['name'], data['age']) The input group also supports using validate parameter to set the validation function, which accepts the entire form data as parameter:0 码力 | 118 页 | 1.40 MB | 1 年前3PyWebIO v1.6.2 Documentation
in top_status: if BMI <= top: put_text('Your BMI: %.1f. Category: %s' % (BMI, status)) break if __name__ == '__main__': bmi() This is just a very simple script if you ignore PyWebIO, but after using the dictionary with the name of the single input as its key and the input data as its value: data = input_group("Basic info",[ input('Input your name', name='name'), input('Input your age', name='age', type=NUMBER type=NUMBER, validate=check_age) ]) put_text(data['name'], data['age']) The input group also supports using validate parameter to set the validation function, which accepts the entire form data as parameter:0 码力 | 108 页 | 1.37 MB | 1 年前3PyWebIO v1.6.3 Documentation
in top_status: if BMI <= top: put_text('Your BMI: %.1f. Category: %s' % (BMI, status)) break if __name__ == '__main__': bmi() This is just a very simple script if you ignore PyWebIO, but after using the dictionary with the name of the single input as its key and the input data as its value: data = input_group("Basic info",[ input('Input your name', name='name'), input('Input your age', name='age', type=NUMBER type=NUMBER, validate=check_age) ]) put_text(data['name'], data['age']) The input group also supports using validate parameter to set the validation function, which accepts the entire form data as parameter:0 码力 | 108 页 | 1.37 MB | 1 年前3PyWebIO v1.6.1 Documentation
in top_status: if BMI <= top: put_text('Your BMI: %.1f. Category: %s' % (BMI, status)) break if __name__ == '__main__': bmi() This is just a very simple script if you ignore PyWebIO, but after using the dictionary with the name of the single input as its key and the input data as its value: data = input_group("Basic info",[ input('Input your name', name='name'), input('Input your age', name='age', type=NUMBER type=NUMBER, validate=check_age) ]) put_text(data['name'], data['age']) The input group also supports using validate parameter to set the validation function, which accepts the entire form data as parameter:0 码力 | 108 页 | 1.37 MB | 1 年前3PyWebIO v1.5.2 Documentation
in top_status: if BMI <= top: put_text('Your BMI: %.1f. Category: %s' % (BMI, status)) break if __name__ == '__main__': bmi() This is just a very simple script if you ignore PyWebIO, but after using the dictionary with the name of the single input as its key and the input data as its value: data = input_group("Basic info",[ input('Input your name', name='name'), input('Input your age', name='age', type=NUMBER type=NUMBER, validate=check_age) ]) put_text(data['name'], data['age']) The input group also supports using validate parameter to set the validation function, which accepts the entire form data as parameter:0 码力 | 108 页 | 1.37 MB | 1 年前3PyWebIO v1.5.0 Documentation
in top_status: if BMI <= top: put_text('Your BMI: %.1f. Category: %s' % (BMI, status)) break if __name__ == '__main__': bmi() This is just a very simple script if you ignore PyWebIO, but after using the dictionary with the name of the single input as its key and the input data as its value: data = input_group("Basic info",[ input('Input your name', name='name'), input('Input your age', name='age', type=NUMBER type=NUMBER, validate=check_age) ]) put_text(data['name'], data['age']) The input group also supports using validate parameter to set the validation function, which accepts the entire form data as parameter:0 码力 | 108 页 | 1.37 MB | 1 年前3PyWebIO v1.5.1 Documentation
in top_status: if BMI <= top: put_text('Your BMI: %.1f. Category: %s' % (BMI, status)) break if __name__ == '__main__': bmi() This is just a very simple script if you ignore PyWebIO, but after using the dictionary with the name of the single input as its key and the input data as its value: data = input_group("Basic info",[ input('Input your name', name='name'), input('Input your age', name='age', type=NUMBER type=NUMBER, validate=check_age) ]) put_text(data['name'], data['age']) The input group also supports using validate parameter to set the validation function, which accepts the entire form data as parameter:0 码力 | 108 页 | 1.37 MB | 1 年前3
共 86 条
- 1
- 2
- 3
- 4
- 5
- 6
- 9