Igo*_*rio 1 python syntax modulo
def f(x):
return x % 2 != 0 and x % 3 != 0
Run Code Online (Sandbox Code Playgroud)
刚学习语言,我认为%是字符串格式化?
在官方教程中找到:http: //docs.python.org/release/2.6.1/tutorial/datastructures.html
| 归档时间: |
|
| 查看次数: |
3204 次 |
| 最近记录: |