What does

前端 未结 3 1613
忘掉有多难
忘掉有多难 2021-01-16 19:27

Going through string formatting operations but can\'t exactly wrap my head about %c operation and its use.

Learn Python the Hard Way, gave the following example but

3条回答
  •  北海茫月
    2021-01-16 20:29

    %c represents character values. It's part of the integer representation types.

    You can't enter a value larger than an unsigned byte (255) as a positional argument to it, so be careful where and when you elect to use it.

提交回复
热议问题